Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236085
b: refs/heads/master
c: 5b6567e
h: refs/heads/master
i:
  236083: 2884337
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Feb 23, 2011
1 parent e76a22f commit 4b02e89
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 253804a25b45aad7bf4f63483f7c7b1d14ab49e2
refs/heads/master: 5b6567ee84d6e8f7015eaa7d7c4926b4fd81746e
5 changes: 5 additions & 0 deletions trunk/drivers/staging/ath6kl/os/linux/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,11 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
break;
}

if (optTxFrmCmd.optIEDataLen > MAX_OPT_DATA_LEN) {
ret = -EINVAL;
break;
}

if (copy_from_user(data, userdata+sizeof(WMI_OPT_TX_FRAME_CMD) - 1,
optTxFrmCmd.optIEDataLen)) {
ret = -EFAULT;
Expand Down

0 comments on commit 4b02e89

Please sign in to comment.