]> git.baikalelectronics.ru Git - kernel.git/commit
iwmc3200wifi: fix array out-of-boundary access
authorZhu Yi <yi.zhu@intel.com>
Mon, 28 Dec 2009 06:23:11 +0000 (14:23 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Dec 2009 21:20:07 +0000 (16:20 -0500)
commit3bb1b7a5bcbc51ae643b5e67dabaf1dee042f320
tree916bb6d0a2664f1ba7818d12b84dc2b3351553f8
parent97bc07955e30e6cd152e55633303243d67147a49
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 <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/iwm.h