From: Zhu Yi Date: Mon, 28 Dec 2009 06:23:11 +0000 (+0800) Subject: iwmc3200wifi: fix array out-of-boundary access X-Git-Tag: v2.6.33-rc3~44^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c853da3f30c93eae847ecbcd9fdf10ba0da04c2;p=profile%2Fcommon%2Fkernel-common.git iwmc3200wifi: fix array out-of-boundary access 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(). Cc: stable@kernel.org Signed-off-by: Zhu Yi Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwmc3200wifi/iwm.h b/drivers/net/wireless/iwmc3200wifi/iwm.h index 79ffa3b..8428111 100644 --- a/drivers/net/wireless/iwmc3200wifi/iwm.h +++ b/drivers/net/wireless/iwmc3200wifi/iwm.h @@ -268,7 +268,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;