summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/rxtx.c
diff options
context:
space:
mode:
authorRoel Kluin2009-10-16 20:17:57 +0200
committerGreg Kroah-Hartman2009-12-11 21:23:16 +0100
commitee93e1971dc2dbc3133962b3d914b18d7c93a681 (patch)
tree4b9dff62c659dabf87bea5989e4e68b382eeae79 /drivers/staging/vt6656/rxtx.c
parentStaging: vt6656: use lowercase for VIA USB vendor id (diff)
downloadkernel-qcow2-linux-ee93e1971dc2dbc3133962b3d914b18d7c93a681.tar.gz
kernel-qcow2-linux-ee93e1971dc2dbc3133962b3d914b18d7c93a681.tar.xz
kernel-qcow2-linux-ee93e1971dc2dbc3133962b3d914b18d7c93a681.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 94ddf8bab62b..d9fa36c95230 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -3153,7 +3153,7 @@ bRelayPacketSend (
}
if (pDevice->bEnableHostWEP) {
- if (uNodeIndex >= 0) {
+ if (uNodeIndex < MAX_NODE_NUM + 1) {
pTransmitKey = &STempKey;
pTransmitKey->byCipherSuite = pMgmt->sNodeDBTable[uNodeIndex].byCipherSuite;
pTransmitKey->dwKeyIndex = pMgmt->sNodeDBTable[uNodeIndex].dwKeyIndex;