Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2121
b: refs/heads/master
c: d0e3e87
h: refs/heads/master
i:
  2119: 85b6921
v: v3
  • Loading branch information
Christoph Hellwig authored and Jeff Garzik committed May 15, 2005
1 parent 84d9e3f commit 64c020d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: b24d4582fd93f3654d0a0a89f85e95140efc7fd4
refs/heads/master: d0e3e87ff4516d1b9d7bc6734a99168838f79635
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -2907,13 +2907,14 @@ static int orinoco_ioctl_setessid(struct net_device *dev, struct iw_point *erq)
memset(&essidbuf, 0, sizeof(essidbuf));

if (erq->flags) {
if (erq->length > IW_ESSID_MAX_SIZE)
/* iwconfig includes the NUL in the specified length */
if (erq->length > IW_ESSID_MAX_SIZE+1)
return -E2BIG;

if (copy_from_user(&essidbuf, erq->pointer, erq->length))
return -EFAULT;

essidbuf[erq->length] = '\0';
essidbuf[IW_ESSID_MAX_SIZE] = '\0';
}

if (orinoco_lock(priv, &flags) != 0)
Expand Down

0 comments on commit 64c020d

Please sign in to comment.