]>
Commit | Line | Data |
---|---|---|
80e6ae8f GKH |
1 | From 6c853da3f30c93eae847ecbcd9fdf10ba0da04c2 Mon Sep 17 00:00:00 2001 |
2 | From: Zhu Yi <yi.zhu@intel.com> | |
3 | Date: Mon, 28 Dec 2009 14:23:11 +0800 | |
4 | Subject: iwmc3200wifi: fix array out-of-boundary access | |
5 | ||
6 | From: Zhu Yi <yi.zhu@intel.com> | |
7 | ||
8 | commit 6c853da3f30c93eae847ecbcd9fdf10ba0da04c2 upstream. | |
9 | ||
10 | Allocate priv->rx_packets[IWM_RX_ID_HASH + 1] because the max array | |
11 | index is IWM_RX_ID_HASH according to IWM_RX_ID_GET_HASH(). | |
12 | ||
13 | Signed-off-by: Zhu Yi <yi.zhu@intel.com> | |
14 | Signed-off-by: John W. Linville <linville@tuxdriver.com> | |
15 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
16 | ||
17 | --- | |
18 | drivers/net/wireless/iwmc3200wifi/iwm.h | 2 +- | |
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
20 | ||
21 | --- a/drivers/net/wireless/iwmc3200wifi/iwm.h | |
22 | +++ b/drivers/net/wireless/iwmc3200wifi/iwm.h | |
23 | @@ -258,7 +258,7 @@ struct iwm_priv { | |
24 | ||
25 | struct sk_buff_head rx_list; | |
26 | struct list_head rx_tickets; | |
27 | - struct list_head rx_packets[IWM_RX_ID_HASH]; | |
28 | + struct list_head rx_packets[IWM_RX_ID_HASH + 1]; | |
29 | struct workqueue_struct *rx_wq; | |
30 | struct work_struct rx_worker; | |
31 |