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)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Feb 2011 20:23:53 +0000 (15:23 -0500)
commit4d048aac990d587c81fc1002e28502e6f95371ee
tree97c20ca2497cee86d9abe5d5b4c88beb92080b5b
parent4334ec8518cec3f7a4feeb3dacb46acfb24904d4
wireless, wl1251: Fix potential NULL pointer dereference in wl1251_op_bss_info_changed()

In drivers/net/wireless/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/wl1251/main.c