linux/drivers/net/wireless/iwmc3200wifi
John W. Linville 79b6a5110a Revert "iwmc3200wifi: fix array out-of-boundary access"
This reverts commit 6c853da3f3.

From Message-ID: <1262663293.551.117.camel@debian>
On Sat, 2010-01-02 at 22:09 +0800, Dan Carpenter wrote:
> It don't think 6c853da3f3 is right.  That's the patch
> titled "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().
>
> In 2.6.33-rc2 IWM_RX_ID_GET_HASH() doesn't go as high as IWM_RX_ID_HASH
> and I don't see any array out-of-bounds.
>
> #define IWM_RX_ID_GET_HASH(id) ((id) % IWM_RX_ID_HASH)

Ah, you are right. I took '%' for '&'. John, would you revert it? Sorry
for the false alarm.

Thanks,
-yi

Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-01-14 17:06:49 -05:00
..
bus.h
cfg80211.c iwmc3200wifi: Implement cfg80211 PMKSA API 2009-11-28 15:05:06 -05:00
cfg80211.h
commands.c iwmc3200wifi: Add wifi-wimax coexistence mode as a module parameter 2009-12-04 14:16:28 -05:00
commands.h iwmc3200wifi: Implement cfg80211 PMKSA API 2009-11-28 15:05:06 -05:00
debug.h iwmc3200wifi: Add a last_fw_err debugfs entry 2009-09-01 12:48:28 -04:00
debugfs.c iwmc3200wifi: Add stopped queue to debugfs 2009-11-28 15:04:45 -05:00
eeprom.c iwmc3200wifi: Update wireless_mode with eeprom values 2009-11-28 15:04:42 -05:00
eeprom.h iwmc3200wifi: Update wireless_mode with eeprom values 2009-11-28 15:04:42 -05:00
fw.c iwmc3200wifi: Set wiphy firmware version 2009-10-27 16:48:27 -04:00
fw.h
hal.c
hal.h
iwm.h Revert "iwmc3200wifi: fix array out-of-boundary access" 2010-01-14 17:06:49 -05:00
Kconfig wireless: remove WLAN_80211 and WLAN_PRE80211 from Kconfig 2009-10-30 16:50:35 -04:00
lmac.h iwmc3200wifi: CT kill support 2009-10-27 16:48:24 -04:00
main.c iwmc3200wifi: Enable wimax core through module parameter 2009-12-04 14:16:29 -05:00
Makefile
netdev.c iwmc3200wifi: Fix test of unsigned in iwm_ntf_stop_resume_tx() 2009-12-21 11:32:25 -05:00
rx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2009-12-28 15:09:11 -05:00
rx.h
sdio.c iwmc3200wifi: declare MODULE_FIRMWARE 2009-11-11 15:23:52 -05:00
sdio.h
tx.c iwmc3200wifi: Remove tx concatenation option 2009-11-28 15:04:46 -05:00
umac.h iwmc3200wifi: Implement cfg80211 PMKSA API 2009-11-28 15:05:06 -05:00