wireless, wl1251: Fix potential NULL pointer dereference in wl1251_op_bss_info_changed()
authorJesper Juhl <jj@chaosbits.net>
Thu, 3 Feb 2011 20:14:01 +0000 (21:14 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 4 Mar 2011 17:30:55 +0000 (19:30 +0200)
commitfe7649c6c32a4e5489c78badb10c9d23ea4098ae
treead50f9469d6525430980aa7c8432ae5b89851b45
parent244c88dc0883871cda38ed4eda67565a08382cdf
wireless, wl1251: Fix potential NULL pointer dereference in wl1251_op_bss_info_changed()

In drivers/net/wireless/wl12xx/wl1251_main.c:wl1251_op_bss_info_changed() we make
a call to ieee80211_beacon_get() which may return NULL, but we do not
check the return value before dereferencing the pointer.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1251_main.c