cfg80211:: fix possible NULL pointer dereference
authorMariusz Kozlowski <mk@lab.zgora.pl>
Sat, 26 Mar 2011 18:26:55 +0000 (19:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Mar 2011 19:42:02 +0000 (15:42 -0400)
commitbef9bacc4ec7ea6a02876164cd6ccaa4759edce4
treee68100ba3efa0ce2a13636027565f422e55bbd95
parent67aa030c0dff6095128bcb4e8043b48360f32331
cfg80211:: fix possible NULL pointer dereference

In cfg80211_inform_bss_frame() wiphy is first dereferenced on privsz
initialisation and then it is checked for NULL. This patch fixes that.

Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/scan.c