bianbu-linux-6.6/drivers/net/wireless/ath/carl9170
Christian Lamparter b397492a8c carl9170: fix virtual interface setup crash
This patch fixes a faulty bound check which caused a
crash when too many virtual interface were brought up.

BUG: unable to handle kernel NULL pointer dereference at 00000004
IP: [<f8125f67>] carl9170_op_add_interface+0x1d7/0x2c0 [carl9170]
*pde = 00000000
Oops: 0002 [#1] PREEMPT
Modules linked in: carl9170 [...]
Pid: 4720, comm: wpa_supplicant Not tainted 2.6.37-rc2-wl+
EIP: 0060:[<f8125f67>] EFLAGS: 00210206 CPU: 0
EIP is at carl9170_op_add_interface+0x1d7/0x2c0 [carl9170]
EAX: 00000000 ...
Process wpa_supplicant
Stack:
 f4f88f34 fffffff4 ..
Call Trace:
 [<f8f4e666>] ? ieee80211_do_open+0x406/0x5c0 [mac80211]
 [...]
Code: <89> 42 04 ...
EIP: [<f8125f67>] carl9170_op_add_interface+0x1d7/0x2c0 [carl9170]
CR2: 0000000000000004

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-11-22 15:19:32 -05:00
..
carl9170.h carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
cmd.c
cmd.h carl9170: fix memory leak issue in async cmd macro wrappers 2010-10-25 14:43:14 -04:00
debug.c carl9170: remove lost-frame workaround 2010-09-28 15:47:56 -04:00
debug.h carl9170: firmware parser and debugfs code 2010-09-14 16:03:42 -04:00
eeprom.h carl9170: Register maps, tx/rx descriptor formats and eeprom layout 2010-09-14 16:03:41 -04:00
fw.c carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
fwcmd.h carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
fwdesc.h carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
hw.h carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
Kconfig carl9170: angle brackets for wiki link 2010-09-28 15:47:56 -04:00
led.c
mac.c carl9170: PHY/RF and MAC routines 2010-09-14 16:03:42 -04:00
main.c carl9170: fix virtual interface setup crash 2010-11-22 15:19:32 -05:00
Makefile carl9170: Makefile, Kconfig files and MAINTAINERS 2010-09-14 16:03:42 -04:00
phy.c carl9170: reinit phy after HT settings have changed 2010-09-21 11:05:25 -04:00
phy.h carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
rx.c carl9170: A-MPDU frame type filter 2010-10-11 15:04:23 -04:00
tx.c carl9170: revamp carl9170_tx_prepare 2010-09-28 15:47:56 -04:00
usb.c carl9170: fix usb anchor wait timeout 2010-11-15 15:03:13 -05:00
version.h carl9170: support firmware-based rx filter 2010-10-05 13:35:21 -04:00
wlan.h carl9170: remove stale rx error path 2010-10-11 15:04:22 -04:00