diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-10-16 14:17:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:23:16 -0500 |
commit | ee93e1971dc2dbc3133962b3d914b18d7c93a681 (patch) | |
tree | 4b9dff62c659dabf87bea5989e4e68b382eeae79 /drivers/staging/vt6656/rxtx.c | |
parent | 5008c456c1cdcb8ef7265dcb6d20317f54d3e8ee (diff) |
Staging: vt6655: Correct unsigned bound issue
uNodeIndex is unsigned, check whether it is within bounds instead.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/rxtx.c')
-rw-r--r-- | drivers/staging/vt6656/rxtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index 94ddf8bab62..d9fa36c9523 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c | |||
@@ -3153,7 +3153,7 @@ bRelayPacketSend ( | |||
3153 | } | 3153 | } |
3154 | 3154 | ||
3155 | if (pDevice->bEnableHostWEP) { | 3155 | if (pDevice->bEnableHostWEP) { |
3156 | if (uNodeIndex >= 0) { | 3156 | if (uNodeIndex < MAX_NODE_NUM + 1) { |
3157 | pTransmitKey = &STempKey; | 3157 | pTransmitKey = &STempKey; |
3158 | pTransmitKey->byCipherSuite = pMgmt->sNodeDBTable[uNodeIndex].byCipherSuite; | 3158 | pTransmitKey->byCipherSuite = pMgmt->sNodeDBTable[uNodeIndex].byCipherSuite; |
3159 | pTransmitKey->dwKeyIndex = pMgmt->sNodeDBTable[uNodeIndex].dwKeyIndex; | 3159 | pTransmitKey->dwKeyIndex = pMgmt->sNodeDBTable[uNodeIndex].dwKeyIndex; |