diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-11-13 14:32:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-06 15:04:18 -0800 |
commit | a6d8cc616a9058b2e08776f971febf5c84534551 (patch) | |
tree | 2455e506be94394b9781c5747028d63fad95845c /lib | |
parent | 12ba7097e0996b27d768504ae4b337ae3e892221 (diff) |
ath9k_hw: Fix possible OOB array indexing in gen_timer_index[] on 64-bit
commit c90017dd43f0cdb42134b9229761e8be02bcd524 upstream.
debruijn32 (0x077CB531) is used to index gen_timer_index[]
which is an array of 32 u32. Having debruijn32 as unsigned
long on a 64-bit platform will result in indexing more than 32
in gen_timer_index[] and there by causing a crash. Make it
unsigned to fix this issue.
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions