ath9k_hw: Fix possible OOB array indexing in gen_timer_index[] on 64-bit
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Fri, 13 Nov 2009 09:02:39 +0000 (14:32 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Nov 2009 22:43:59 +0000 (17:43 -0500)
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.h

index 6d3e314c4bea5f47f64d8d43962c6a8c338cbf3d..abaa2f09a3bc651c88a4b9190c728f2adb23fb3f 100644 (file)
@@ -432,7 +432,7 @@ struct ath9k_hw_version {
  * 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
  */
-#define debruijn32 0x077CB531UL
+#define debruijn32 0x077CB531U
 
 struct ath_gen_timer_configuration {
        u32 next_addr;