Commit 260da7e1 authored by Pavel Machek's avatar Pavel Machek Committed by John W. Linville

wl1251: fix NULL pointer dereference

wl1251: fix NULL pointer dereference
Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
Reported-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent deb6e6b7
...@@ -124,7 +124,7 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox) ...@@ -124,7 +124,7 @@ static int wl1251_event_process(struct wl1251 *wl, struct event_mailbox *mbox)
return ret; return ret;
} }
if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) { if (wl->vif && vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) {
wl1251_debug(DEBUG_EVENT, "SYNCHRONIZATION_TIMEOUT_EVENT"); wl1251_debug(DEBUG_EVENT, "SYNCHRONIZATION_TIMEOUT_EVENT");
/* indicate to the stack, that beacons have been lost */ /* indicate to the stack, that beacons have been lost */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment