mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-13 00:32:24 +00:00
rtl8188eu: On kernel 2.6.32, a NULL dereference was found
This bug was reported and debugged by GitHub user jdowells. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
d76cbb313d
commit
b5cf1b0cf3
1 changed files with 2 additions and 0 deletions
|
@ -9571,6 +9571,8 @@ static int rtw_ioctl_wext_private(struct net_device *dev, union iwreq_data *wrq_
|
||||||
memcpy(&wdata, wrq_data, sizeof(wdata));
|
memcpy(&wdata, wrq_data, sizeof(wdata));
|
||||||
|
|
||||||
input_len = wdata.data.length;
|
input_len = wdata.data.length;
|
||||||
|
if (input_len == 0)
|
||||||
|
return -EFAULT;
|
||||||
input = rtw_zmalloc(input_len);
|
input = rtw_zmalloc(input_len);
|
||||||
if (NULL == input)
|
if (NULL == input)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in a new issue