aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/wext.c')
-rw-r--r--net/wireless/wext.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/wireless/wext.c b/net/wireless/wext.c
index 22378daceb94..252c2010c2e2 100644
--- a/net/wireless/wext.c
+++ b/net/wireless/wext.c
@@ -820,6 +820,13 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
820 err = -EFAULT; 820 err = -EFAULT;
821 goto out; 821 goto out;
822 } 822 }
823
824 if (cmd == SIOCSIWENCODEEXT) {
825 struct iw_encode_ext *ee = (void *) extra;
826
827 if (iwp->length < sizeof(*ee) + ee->key_len)
828 return -EFAULT;
829 }
823 } 830 }
824 831
825 err = handler(dev, info, (union iwreq_data *) iwp, extra); 832 err = handler(dev, info, (union iwreq_data *) iwp, extra);