diff options
author | Eyal Shapira <eyal@wizery.com> | 2014-10-19 15:56:40 +0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-11-03 21:09:21 +0300 |
commit | 82e8aea03f2f5dd2bc5c7e68dc2647b7c6cb4dd7 (patch) | |
tree | 0ad52465e4ea3b2da654b22e12ac4f75859cdab4 /drivers/net/wireless/iwlwifi/mvm/fw.c | |
parent | 3e4b1b4a91be447511a7a2e8f3b5b2942328e97c (diff) | |
download | linux-82e8aea03f2f5dd2bc5c7e68dc2647b7c6cb4dd7.tar.xz |
iwlwifi: mvm: handle error from iwl_trans_update_sf
iwl_trans_update_sf can fail and this wasn't handled.
Fix this.
Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/fw.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/fw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c index e0d9f19650b0..8c96e5af75f7 100644 --- a/drivers/net/wireless/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/iwlwifi/mvm/fw.c @@ -227,6 +227,10 @@ static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm, st_fwrd_space.addr = mvm->sf_space.addr; st_fwrd_space.size = mvm->sf_space.size; ret = iwl_trans_update_sf(mvm->trans, &st_fwrd_space); + if (ret) { + IWL_ERR(mvm, "Failed to update SF size. ret %d\n", ret); + return ret; + } iwl_trans_fw_alive(mvm->trans, alive_data.scd_base_addr); |