Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145262
b: refs/heads/master
c: 88f16db
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 20, 2009
1 parent 7cacf46 commit 4cd247d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b611cb6eed04062d0a9861c82248e02c844ba3f
refs/heads/master: 88f16db7a2fa63b9242e8a0fbc40d51722f2e2f9
7 changes: 7 additions & 0 deletions trunk/net/wireless/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,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);
Expand Down

0 comments on commit 4cd247d

Please sign in to comment.