From: Larry Finger Date: Fri, 6 May 2011 18:56:18 +0000 (-0500) Subject: rtlwifi: Move 2 large arrays off stack X-Git-Tag: v3.0-rc1~377^2~54^2^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c84aa5af996a306c8ce66aac2cc4d5f4a74e27ca;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed