[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3642222.ppVDPONLa4@wuerfel>
Date: Thu, 18 Feb 2016 10:21:48 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Larry Finger <Larry.Finger@...inger.net>
Cc: Florian Schilhabel <florian.c.schilhabel@...glemail.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-arm-kernel@...ts.infradead.org,
Luis de Bethencourt <luisbg@....samsung.com>,
Joshua Clayton <stillcompiling@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: rtl8712: reduce stack usage
On Wednesday 17 February 2016 20:20:15 Larry Finger wrote:
> > ---
> > drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> As there is no reason for translate_scan() to be inlined, this patch seems
> reasonable The largest user of stack likely comes from the line "struct iw_event
> iwe". Changing that to a pointer, and using kalloc to acquire the space would
> likely clear the compile message, but that would require many more changes.
>
> Acked-by: Larry Finger <Larry.Finger@...inger.net>
>
>
Thanks!
I believe that the problem is the combination of "struct iw_event"
and the two buffers "u8 wpa_ie[255], rsn_ie[255];" and "u8 wps_ie[512];".
Just to document this better: if we ever decide to use a dynamic allocation,
I would allocate all of the above together.
Arnd
Powered by blists - more mailing lists