rtl8188eu: Fix potential data overrun

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2020-02-09 12:22:25 -06:00
parent d69b1de23c
commit 02614d02dc

View file

@ -5530,7 +5530,7 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p)
goto out;
}
if (!p->pointer) {
if (!p->pointer || p->length < sizeof(struct ieee_param)) {
ret = -EINVAL;
goto out;
}