commit | c84aa5af996a306c8ce66aac2cc4d5f4a74e27ca | [log] [tgz] |
---|---|---|
author | Larry Finger <Larry.Finger@lwfinger.net> | Fri May 06 13:56:18 2011 -0500 |
committer | John W. Linville <linville@tuxdriver.com> | Tue May 10 15:54:46 2011 -0400 |
tree | 7b0068632907346172d48570058aa7905f9766aa | |
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>