]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iwmc3200wifi: fix array out-of-boundary access
authorZhu Yi <yi.zhu@intel.com>
Mon, 28 Dec 2009 06:23:11 +0000 (14:23 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:04:03 +0000 (15:04 -0800)
commit 6c853da3f30c93eae847ecbcd9fdf10ba0da04c2 upstream.

Allocate priv->rx_packets[IWM_RX_ID_HASH + 1] because the max array
index is IWM_RX_ID_HASH according to IWM_RX_ID_GET_HASH().

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwmc3200wifi/iwm.h

index 1b02a4e2a1aca8d14aa9cbcde2067ff4a207990d..93c898990ccece7447612e1b3f66fd718c4b4120 100644 (file)
@@ -258,7 +258,7 @@ struct iwm_priv {
 
        struct sk_buff_head rx_list;
        struct list_head rx_tickets;
-       struct list_head rx_packets[IWM_RX_ID_HASH];
+       struct list_head rx_packets[IWM_RX_ID_HASH + 1];
        struct workqueue_struct *rx_wq;
        struct work_struct rx_worker;