]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188: avoid excessive stack usage
authorArnd Bergmann <arnd@arndb.de>
Sat, 4 Jan 2020 21:48:21 +0000 (22:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2020 09:58:31 +0000 (10:58 +0100)
commitadf37e404dfe7637d3dd38e4c6520287da5dd860
treec0fbd6896849de66b153f56c13c02a3c58b943b8
parentc81cbbd0b8e406bb8ec6ceacd88509a5b837872f
staging: rtl8188: avoid excessive stack usage

The rtl8188 copy of the os_dep support code causes a
warning about a very significant stack usage in the translate_scan()
function:

drivers/staging/rtl8188eu/os_dep/ioctl_linux.c: In function 'translate_scan':
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:306:1: error: the frame size of 1560 bytes is larger than 1400 bytes [-Werror=frame-larger-than=]

Use the same trick as in the rtl8723bs copy of the same function, and
allocate it dynamically.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200104214832.558198-1-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c