rtl8188eu: Fix IOCTL length rejection

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2020-06-10 14:07:55 -05:00
parent ac42434b2a
commit 71af295db5

View file

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