diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-05-20 00:12:56 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 18:29:55 (GMT) |
commit | a6c67339784db5763d6f20ae1881aeebe8c5a9f4 (patch) | |
tree | 3e24e0615622c6182b4585699c860b93cb39494d /drivers/net | |
parent | c9d2fbf36df5e04efa226614093bb1bacc6fe131 (diff) | |
download | linux-fsl-qoriq-a6c67339784db5763d6f20ae1881aeebe8c5a9f4.tar.xz |
wireless: beyond ARRAY_SIZE of intf->crypto_stats
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index 07d378e..7b3ee8c 100644 --- 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 */ |