Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent c258d2de
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;