]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Mon, 24 Feb 2020 07:36:44 +0000 (08:36 +0100)
commit8689967be56d04a16ccecd19e6bbc7838fb2b411
tree84fc6fbd5d8d816c8a2a7fade9a107cf59af8707
parentbfe29951e25019eceb06aff2332e9e605c0964f1
staging: rtl8188: avoid excessive stack usage

[ Upstream commit c497ae2077c055b85c1bf04f3d182a84bd8f365b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c