diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-05-06 14:56:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-10 15:54:46 -0400 |
commit | c84aa5af996a306c8ce66aac2cc4d5f4a74e27ca (patch) | |
tree | 7b0068632907346172d48570058aa7905f9766aa /drivers/net/wireless/rtlwifi/pci.c | |
parent | 054ec924944912413e4ee927b8cf02f476d08783 (diff) |
rtlwifi: Move 2 large arrays off stack
In driver rtlwifi, efuse_read() places two relatively large arrays on the
stack - a 1D u8 array of size 128, and a 2D array of u16 with 128 * 4 elements.
With driver rtl8192de, the sizes will be 256 and 256 * 4 respectively. As that
will make the 2D array be 2048 bytes, I have changed the code to use kmalloc to
allocate the space.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
0 files changed, 0 insertions, 0 deletions