diff options
author | Eran Harary <eran.harary@intel.com> | 2014-04-30 08:31:59 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-05-06 13:40:04 -0400 |
commit | bb926924e9dc515e83a6a69e9b8b226638b9178d (patch) | |
tree | 0fdfac2bba61d3e1d79eb215b784014b898bd84a | |
parent | 9f32e017313112d087f60e1b94bcc7872255b89f (diff) |
iwlwifi: mvm: fix bug in parse_nvm_sections
The old code checks if hw_section_num is valid while the
right thing to do is to check if section[hw_section_num].data
is valid.
Signed-off-by: Eran Harary <eran.harary@intel.com>
Reviewed-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/nvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/nvm.c b/drivers/net/wireless/iwlwifi/mvm/nvm.c index 6d0e659c3dec..6b88c29ebe6b 100644 --- a/drivers/net/wireless/iwlwifi/mvm/nvm.c +++ b/drivers/net/wireless/iwlwifi/mvm/nvm.c | |||
@@ -246,7 +246,7 @@ iwl_parse_nvm_sections(struct iwl_mvm *mvm) | |||
246 | return NULL; | 246 | return NULL; |
247 | } | 247 | } |
248 | /* MAC_OVERRIDE or at least HW section must exist */ | 248 | /* MAC_OVERRIDE or at least HW section must exist */ |
249 | if (!mvm->cfg->nvm_hw_section_num && | 249 | if (!mvm->nvm_sections[mvm->cfg->nvm_hw_section_num].data && |
250 | !mvm->nvm_sections[NVM_SECTION_TYPE_MAC_OVERRIDE].data) { | 250 | !mvm->nvm_sections[NVM_SECTION_TYPE_MAC_OVERRIDE].data) { |
251 | IWL_ERR(mvm, | 251 | IWL_ERR(mvm, |
252 | "Can't parse mac_address, empty sections\n"); | 252 | "Can't parse mac_address, empty sections\n"); |