projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0ebe79
)
net: wireless: bcmdhd: Check wldev_ioctl() for NULL parameter
author
Dmitry Shmidt
<dimitrysh@google.com>
Mon, 1 Aug 2011 22:40:01 +0000
(15:40 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Tue, 2 Aug 2011 22:45:28 +0000
(15:45 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wldev_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/bcmdhd/wldev_common.c
b/drivers/net/wireless/bcmdhd/wldev_common.c
index 31e8f3cb86fda1413bda8a17d8d8984282c5c52e..429cd2c451e4c3ab3c12959fbf3f6daf40662765 100644
(file)
--- a/
drivers/net/wireless/bcmdhd/wldev_common.c
+++ b/
drivers/net/wireless/bcmdhd/wldev_common.c
@@
-47,6
+47,11
@@
s32 wldev_ioctl(
mm_segment_t fs;
s32 err = 0;
+ if (!dev) {
+ DHD_ERROR(("%s: dev is null\n", __FUNCTION__));
+ return -EINVAL;
+ }
+
memset(&ioc, 0, sizeof(ioc));
ioc.cmd = cmd;
ioc.buf = arg;