Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166572
b: refs/heads/master
c: 8503bd8
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven authored and John W. Linville committed Sep 28, 2009
1 parent 60dda14 commit e65eb5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ff716136ab73d2fc1edc0664e38169e7a76bb9a
refs/heads/master: 8503bd8c7dc6f82ec2de9d05e0a476e6ca5adc8b
9 changes: 6 additions & 3 deletions trunk/net/wireless/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,13 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
essid_compat = 1;
else if (IW_IS_SET(cmd) && (iwp->length != 0)) {
char essid[IW_ESSID_MAX_SIZE + 1];
unsigned int len;
len = iwp->length * descr->token_size;

err = copy_from_user(essid, iwp->pointer,
iwp->length *
descr->token_size);
if (len > IW_ESSID_MAX_SIZE)
return -EFAULT;

err = copy_from_user(essid, iwp->pointer, len);
if (err)
return -EFAULT;

Expand Down

0 comments on commit e65eb5c

Please sign in to comment.