linux/drivers/net/wireless/rtlwifi
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
..
rtl8192c rtlwifi: rtl8192c-common: rtl8192se: rtl8192de: Simplify if statements 2012-02-22 14:47:38 -05:00
rtl8192ce rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
rtl8192cu rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
rtl8192de rtlwifi: rtl8192c-common: rtl8192se: rtl8192de: Simplify if statements 2012-02-22 14:47:38 -05:00
rtl8192se rtlwifi: rtl8192se firmware load can overflow target buffer 2012-02-22 14:48:53 -05:00
base.c Correcting typos in rtlwifi/base.c 2012-02-22 14:48:49 -05:00
base.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
cam.c rtlwifi: Move pr_fmt macros to a single location 2012-01-30 15:48:23 -05:00
cam.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
core.c rtlwifi: Remove extra debugging message accidentally left in 2012-02-06 14:53:09 -05:00
core.h rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
debug.c rtlwifi: Move pr_fmt macros to a single location 2012-01-30 15:48:23 -05:00
debug.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
efuse.c rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
efuse.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
Kconfig rtlwifi: add CONFIG_RTLWIFI_DEBUG to remove all of the debug logging code 2012-01-24 14:07:41 -05:00
Makefile rtlwifi: rtl8192de: Modify Kconfig and Makefile routines for new driver 2011-06-27 15:09:38 -04:00
pci.c rtlwifi: Modify rtl_pci_init to return 0 on success 2012-02-09 14:49:37 -05:00
pci.h rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
ps.c rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
ps.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
rc.c rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
rc.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
regd.c rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
regd.h rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
usb.c rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00
usb.h rtlwifi: Move pr_fmt macros to a single location 2012-01-30 15:48:23 -05:00
wifi.h rtlwifi: Convert to asynchronous firmware load 2012-01-30 15:48:50 -05:00