android_kernel_motorola_sm6225/drivers/net/wireless/rtlwifi/rtl8192se
Tim Gardner 3fccdcf509 rtlwifi: rtl8192se firmware load can overflow target buffer
Define RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE which represents the
maximimum possible firmware file size. Use it in the definition
of the buffer which receives the firmware file data.

Set RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE closer to the actual size of
the firmware file, e.g., 90000 (down from hard coded 164000). The current
size of rtlwifi/rtl8192sefw.bin is 88856.

Set max_fw_size to RTL8190_MAX_RAW_FIRMWARE_CODE_SIZE for the size limit
check. Fix the error case where max_fw_size is not cleared if the size
limit check fails.

Cc: Chaoming Li <chaoming_li@realsil.com.cn>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-02-22 14:48:53 -05:00
..
def.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
dm.c rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
dm.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
fw.c rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
fw.h rtlwifi: rtl8192se firmware load can overflow target buffer 2012-02-22 14:48:53 -05:00
hw.c rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
hw.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
led.c rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
led.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
Makefile rtlwifi: rtl8192se: Modify Kconfig and Makefile routines for new driver 2011-05-05 14:59:14 -04:00
phy.c rtlwifi: rtl8192c-common: rtl8192se: rtl8192de: Simplify if statements 2012-02-22 14:47:38 -05:00
phy.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
reg.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
rf.c rtlwifi: Move pr_fmt macros to a single location 2012-01-30 15:48:23 -05:00
rf.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
sw.c rtlwifi: rtl8192se firmware load can overflow target buffer 2012-02-22 14:48:53 -05:00
sw.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
table.c rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
table.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
trx.c rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00
trx.h rtl8192se: Update copyright dates 2012-01-24 14:08:38 -05:00