iwlwifi: mvm: handle possible BIOS bug
authorSharon Dvir <sharon.dvir@intel.com>
Tue, 21 Feb 2017 09:12:12 +0000 (11:12 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 12:28:41 +0000 (15:28 +0300)
commite2ef147686751f1a08143bb7b3bda629cceb9369
tree035e8a85fdd990bd6c4e26ee5cf4d1c60536954a
parent3287bb1088d5470b2057ad3fefb9f3dae586515f
iwlwifi: mvm: handle possible BIOS bug

In iwl_mvm_sar_get_ewrd_table() In case of a BIOS bug, n_profiles
might be 0 thus we need to return an error value.  Found by Klocwork.

Signed-off-by: Sharon Dvir <sharon.dvir@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c