net: wireless: bcmdhd: Check wldev_ioctl() for NULL parameter

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt
2011-08-01 15:40:01 -07:00
parent b0ebe79d66
commit 5b1186350d

View File

@@ -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;