From patchwork Fri Nov 13 09:02:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasanthakumar Thiagarajan X-Patchwork-Id: 59749 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAD9Cjkh031110 for ; Fri, 13 Nov 2009 09:12:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755002AbZKMJMi (ORCPT ); Fri, 13 Nov 2009 04:12:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754968AbZKMJMi (ORCPT ); Fri, 13 Nov 2009 04:12:38 -0500 Received: from mail.atheros.com ([12.36.123.2]:30004 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754941AbZKMJMh (ORCPT ); Fri, 13 Nov 2009 04:12:37 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Fri, 13 Nov 2009 01:12:43 -0800 Received: from localhost.localdomain (10.12.4.14) by SC1EXHC-02.global.atheros.com (10.10.20.111) with Microsoft SMTP Server id 8.0.813.0; Fri, 13 Nov 2009 01:12:42 -0800 From: Vasanthakumar Thiagarajan To: CC: , , , Subject: [PATCH 1/2] ath9k_hw: Fix possible OOB array indexing in gen_timer_index[] on 64-bit Date: Fri, 13 Nov 2009 14:32:39 +0530 Message-ID: <1258102960-22768-1-git-send-email-vasanth@atheros.com> X-Mailer: git-send-email 1.5.5.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 6d3e314..abaa2f0 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -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;