iwlwifi: range checking issue
authorDan Carpenter <error27@gmail.com>
Sun, 28 Mar 2010 11:55:00 +0000 (14:55 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Mar 2010 19:37:36 +0000 (15:37 -0400)
commit8e1a53c615e8efe0fac670f2973da64758748a8a
treecc9cece2c027695604c22a7d871fbd102b42e220
parent2d20c72c021d96f8b9230396c8e3782f204214ec
iwlwifi: range checking issue

IWL_RATE_COUNT is 13 and IWL_RATE_COUNT_LEGACY is 12.

IWL_RATE_COUNT_LEGACY is the right one here because iwl3945_rates
doesn't support 60M and also that's how "rates" is defined in
iwlcore_init_geos() from drivers/net/wireless/iwlwifi/iwl-core.c.

        rates = kzalloc((sizeof(struct ieee80211_rate) * IWL_RATE_COUNT_LEGACY),
                        GFP_KERNEL);

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: stable@kernel.org
Acked-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c