diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-10-12 05:26:13 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-10-12 11:33:33 -0400 |
commit | fd74d065f43f88eedc7492886d84f0accb683653 (patch) | |
tree | 4be06eb7d28615afa4f6acf845eba2946f3dd050 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | bc795df1d225415c2ec6ff2a81c07a753681d945 (diff) |
iwl3945: fix queue allocation
commit 6f98613258b966ffe0e6def18129b386514d10e0
Author: Jay Sternberg <jay.e.sternberg@intel.com>
Date: Sat Sep 18 09:07:04 2010 -0700
iwlagn: reduce redundant parameter definitions
broke 3945 because Jay accidentally removed the
num_of_queues parameter for 3945, so that we now
attempt to allocate a zero-sized queue array,
which leads to SLUB returning ZERO_SIZE_PTR (0x10)
which we then try to dereference thus crashing the
system. Restore the necessary num_of_queues param.
This fixes
http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2254
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 7d74ae53950c..176e52577673 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -2753,6 +2753,7 @@ static const struct iwl_ops iwl3945_ops = { | |||
2753 | 2753 | ||
2754 | static struct iwl_base_params iwl3945_base_params = { | 2754 | static struct iwl_base_params iwl3945_base_params = { |
2755 | .eeprom_size = IWL3945_EEPROM_IMG_SIZE, | 2755 | .eeprom_size = IWL3945_EEPROM_IMG_SIZE, |
2756 | .num_of_queues = IWL39_NUM_QUEUES, | ||
2756 | .pll_cfg_val = CSR39_ANA_PLL_CFG_VAL, | 2757 | .pll_cfg_val = CSR39_ANA_PLL_CFG_VAL, |
2757 | .set_l0s = false, | 2758 | .set_l0s = false, |
2758 | .use_bsm = true, | 2759 | .use_bsm = true, |