iwlwifi: mvm: fix bug in parse_nvm_sections
authorEran Harary <eran.harary@intel.com>
Wed, 30 Apr 2014 12:31:59 +0000 (15:31 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 6 May 2014 17:40:04 +0000 (20:40 +0300)
commitbb926924e9dc515e83a6a69e9b8b226638b9178d
tree0fdfac2bba61d3e1d79eb215b784014b898bd84a
parent9f32e017313112d087f60e1b94bcc7872255b89f
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>
drivers/net/wireless/iwlwifi/mvm/nvm.c