Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32876
b: refs/heads/master
c: fe397d4
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and John W. Linville committed Jul 27, 2006
1 parent f523109 commit 7737774
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 345f6b8beb20338a2d792bf5974d01d457abee53
refs/heads/master: fe397d469fa3fbc678383ffbd0630e4849cca688
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -2875,7 +2875,7 @@ static int orinoco_ioctl_setiwencode(struct net_device *dev,
if (orinoco_lock(priv, &flags) != 0)
return -EBUSY;

if (erq->pointer) {
if (erq->length > 0) {
if ((index < 0) || (index >= ORINOCO_MAX_KEYS))
index = priv->tx_key;

Expand Down Expand Up @@ -2918,7 +2918,7 @@ static int orinoco_ioctl_setiwencode(struct net_device *dev,
if (erq->flags & IW_ENCODE_RESTRICTED)
restricted = 1;

if (erq->pointer) {
if (erq->pointer && erq->length > 0) {
priv->keys[index].len = cpu_to_le16(xlen);
memset(priv->keys[index].data, 0,
sizeof(priv->keys[index].data));
Expand Down

0 comments on commit 7737774

Please sign in to comment.