staging: rtl8723bs: reduce stack usage of cfg80211_rtw_scan
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 18 Oct 2019 10:18:54 +0000 (11:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Oct 2019 02:40:54 +0000 (22:40 -0400)
commitf306bde1860d1572993e4a6f48b02944d0a7e918
treef1d1ade2cb48728b57ae955441a4eef64c61515b
parent9f665d82039187072263e22294ab6e290312f6bf
staging: rtl8723bs: reduce stack usage of cfg80211_rtw_scan

The build of xtensa allmodconfig gives warning of:
In function 'cfg80211_rtw_scan':
warning: the frame size of 1040 bytes is larger than 1024 bytes

Allocate memory for ssid dynamically to reduce the stack usage, as an
added benifit we can remove the memset by using kzalloc while allocating
memory.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20191018101854.31876-1-sudipm.mukherjee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c