Commit c90017dd authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by John W. Linville

ath9k_hw: Fix possible OOB array indexing in gen_timer_index[] on 64-bit

Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c258d2de
...@@ -432,7 +432,7 @@ struct ath9k_hw_version { ...@@ -432,7 +432,7 @@ struct ath9k_hw_version {
* Using de Bruijin sequence to to look up 1's index in a 32 bit number * Using de Bruijin sequence to to look up 1's index in a 32 bit number
* debruijn32 = 0000 0111 0111 1100 1011 0101 0011 0001 * debruijn32 = 0000 0111 0111 1100 1011 0101 0011 0001
*/ */
#define debruijn32 0x077CB531UL #define debruijn32 0x077CB531U
struct ath_gen_timer_configuration { struct ath_gen_timer_configuration {
u32 next_addr; u32 next_addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment