projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deb6e6b
)
wl1251: fix NULL pointer dereference
author
Pavel Machek
<pavel@ucw.cz>
Tue, 7 Jan 2014 12:13:28 +0000
(13:13 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Thu, 9 Jan 2014 15:56:38 +0000
(10:56 -0500)
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>
drivers/net/wireless/ti/wl1251/event.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ti/wl1251/event.c
b/drivers/net/wireless/ti/wl1251/event.c
index 192cebd120d8d4da805f94353f814e5bae1cb33b..db0105313745f08a02c9d408564c5d8029aa05ca 100644
(file)
--- 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 */