mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
net: wireless: bcmdhd: Check wldev_ioctl() for NULL parameter
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user