summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2014-01-07 13:13:28 +0100
committerJohn W. Linville <linville@tuxdriver.com>2014-01-09 16:56:38 +0100
commit260da7e1559fad5422cbb03a9438db6ede120686 (patch)
tree0baafd2921d1e53859b81ba00514f541eb8c8657 /drivers/net/wireless/ti
parentwl1251: add nvs file name to module firmware list (diff)
downloadlinux-260da7e1559fad5422cbb03a9438db6ede120686.tar.xz
linux-260da7e1559fad5422cbb03a9438db6ede120686.zip
wl1251: fix NULL pointer dereference
wl1251: fix NULL pointer dereference Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Reported-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r--drivers/net/wireless/ti/wl1251/event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl1251/event.c b/drivers/net/wireless/ti/wl1251/event.c
index 192cebd120d8..db0105313745 100644
--- a/drivers/net/wireless/ti/wl1251/event.c
+++ b/drivers/net/wireless/ti/wl1251/event.c
@@ -124,7 +124,7 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
return ret;
}
- if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) {
+ if (wl->vif && vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) {
wl1251_debug(DEBUG_EVENT, "SYNCHRONIZATION_TIMEOUT_EVENT");
/* indicate to the stack, that beacons have been lost */