mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-24 21:43:40 +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
c116500a72
commit
3091828c8f
1 changed files with 2 additions and 0 deletions
|
@ -7859,6 +7859,8 @@ static int rtw_ioctl_wext_private(struct net_device *dev, union iwreq_data *wrq_
|
|||
memcpy(&wdata, wrq_data, sizeof(wdata));
|
||||
|
||||
input_len = wdata.data.length;
|
||||
if (input_len == 0)
|
||||
return -EFAULT;
|
||||
input = rtw_zmalloc(input_len);
|
||||
if (NULL == input)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Reference in a new issue