mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
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>
This commit is contained in:
parent
deb6e6b748
commit
260da7e155
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue