diff options
author | David S. Miller <davem@davemloft.net> | 2009-05-25 10:42:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-25 10:42:21 +0200 |
commit | c649c0e31d5736a4b7c5c3454182091dda4bbe62 (patch) | |
tree | 93da11bf4ea828611ab5277a7dbadf57724c2b1e /net/wireless/wext.c | |
parent | mISDN: Added PCI ID for new Junghanns.net Single E1 cards. (diff) | |
parent | gianfar: fix BUG under load after introduction of skb recycling (diff) | |
download | linux-c649c0e31d5736a4b7c5c3454182091dda4bbe62.tar.xz linux-c649c0e31d5736a4b7c5c3454182091dda4bbe62.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c
Diffstat (limited to 'net/wireless/wext.c')
-rw-r--r-- | net/wireless/wext.c | 7 |
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, err = -EFAULT; goto out; } + + if (cmd == SIOCSIWENCODEEXT) { + struct iw_encode_ext *ee = (void *) extra; + + if (iwp->length < sizeof(*ee) + ee->key_len) + return -EFAULT; + } } err = handler(dev, info, (union iwreq_data *) iwp, extra); |