Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299099
b: refs/heads/master
c: 4ca5218
h: refs/heads/master
i:
  299097: bf2970f
  299095: 3d8974a
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 057cb01 commit 94c202b
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 401c90e56c48b1c642507a8bec91b7ae21f1156e
refs/heads/master: 4ca5218e3939685c2325fc0a0a1ac8150272c93f
3 changes: 3 additions & 0 deletions trunk/drivers/staging/vt6655/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@ bool KeybSetDefaultKey (
return (false);
}

if (uKeyLength > MAX_KEY_LEN)
return false;

pTable->KeyTable[MAX_KEY_TABLE-1].bInUse = true;
for(ii=0;ii<ETH_ALEN;ii++)
pTable->KeyTable[MAX_KEY_TABLE-1].abyBSSID[ii] = 0xFF;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/staging/vt6656/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ BOOL KeybSetDefaultKey(
return (FALSE);
}

if (uKeyLength > MAX_KEY_LEN)
return false;

pTable->KeyTable[MAX_KEY_TABLE-1].bInUse = TRUE;
for (ii = 0; ii < ETH_ALEN; ii++)
pTable->KeyTable[MAX_KEY_TABLE-1].abyBSSID[ii] = 0xFF;
Expand Down

0 comments on commit 94c202b

Please sign in to comment.