projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a4a6d
)
iwmc3200wifi: fix array out-of-boundary access
author
Zhu Yi
<yi.zhu@intel.com>
Mon, 28 Dec 2009 06:23:11 +0000
(14:23 +0800)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 28 Dec 2009 21:20:07 +0000
(16:20 -0500)
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 <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/iwm.h
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwmc3200wifi/iwm.h
b/drivers/net/wireless/iwmc3200wifi/iwm.h
index 79ffa3b98d73c687c968e2b815272a1843f6e0ba..842811142bef0c951eea272e93ac674fe21c76ae 100644
(file)
--- 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;