projects
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6a4c1e
)
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
mgross
<mark.gross@intel.com>
Wed, 9 Nov 2011 20:22:21 +0000
(12:22 -0800)
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
31e8f3c
..
429cd2c
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;