From 71af295db5415e41a70343e90213169ee307e878 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 10 Jun 2020 14:07:55 -0500 Subject: [PATCH] rtl8188eu: Fix IOCTL length rejection Signed-off-by: Larry Finger --- os_dep/ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/ioctl_linux.c b/os_dep/ioctl_linux.c index 19ea69c..e3ee9f3 100644 --- a/os_dep/ioctl_linux.c +++ b/os_dep/ioctl_linux.c @@ -5530,7 +5530,7 @@ static int rtw_hostapd_ioctl(struct net_device *dev, struct iw_point *p) goto out; } - if (!p->pointer || p->length < sizeof(struct ieee_param)) { + if (!p->pointer || p->length > sizeof(struct ieee_param)) { ret = -EINVAL; goto out; }