projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9d2fbf
)
wireless: beyond ARRAY_SIZE of intf->crypto_stats
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 20 May 2009 00:12:56 +0000
(
02:12
+0200)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 20 May 2009 18:29:55 +0000
(14:29 -0400)
Do not go beyond ARRAY_SIZE of intf->crypto_stats
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rt2x00/rt2x00debug.c
b/drivers/net/wireless/rt2x00/rt2x00debug.c
index 07d378ef0b46297995d016b039af2452e2646bea..7b3ee8c2eaef91bac4c9d959f69785d197c1ff35 100644
(file)
--- a/
drivers/net/wireless/rt2x00/rt2x00debug.c
+++ b/
drivers/net/wireless/rt2x00/rt2x00debug.c
@@
-138,7
+138,7
@@
void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,
if (cipher == CIPHER_TKIP_NO_MIC)
cipher = CIPHER_TKIP;
- if (cipher == CIPHER_NONE || cipher > CIPHER_MAX)
+ if (cipher == CIPHER_NONE || cipher >
=
CIPHER_MAX)
return;
/* Remove CIPHER_NONE index */