linux/drivers/net/wireless
Johannes Berg 513aa3b0d1 iwlwifi: fix async station command crash
Before Emmanuel's change to use a copy of the command
("iwlwifi: get the correct HCMD in the response handler")
the iwl_add_sta_callback() function would have used a
random pointer to somewhere when processing responses
to an async command, while that wasn't valid data it
was at least a valid pointer. Now, the pointer will be
NULL in this case, thus crashing.

Fix this by exiting the function early if no command
is passed back which means it was sent asynchronously.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-09-20 16:37:40 +02:00
..
ath carl9170: report A-MPDU status 2012-08-21 16:06:30 -04:00
b43 Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-08-21 16:00:21 -04:00
b43legacy Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-08-21 16:00:21 -04:00
brcm80211 Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-08-21 16:00:21 -04:00
hostap
ipw2x00
iwlegacy Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-08-21 16:00:21 -04:00
iwlwifi iwlwifi: fix async station command crash 2012-09-20 16:37:40 +02:00
libertas Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-07-20 12:30:48 -04:00
libertas_tf mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
mwifiex mwifiex: use GFP_ATOMIC under spin lock 2012-08-10 15:27:05 -04:00
orinoco nl80211: move scan API to wdev 2012-07-12 12:10:41 +02:00
p54 Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-08-21 16:00:21 -04:00
prism54
rt2x00 mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
rtl818x mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
rtlwifi mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
ti mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
zd1211rw mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
adm8211.c mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
adm8211.h
airo_cs.c
airo.c
airo.h
at76c50x-usb.c mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
at76c50x-usb.h
atmel_cs.c
atmel_pci.c
atmel.c
atmel.h
Kconfig iwmc3200wifi: remove driver for unavailable hardware 2012-07-10 12:16:32 -04:00
mac80211_hwsim.c Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2012-08-21 16:00:21 -04:00
mac80211_hwsim.h
Makefile iwmc3200wifi: remove driver for unavailable hardware 2012-07-10 12:16:32 -04:00
mwl8k.c mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c nl80211: move scan API to wdev 2012-07-12 12:10:41 +02:00
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h