iwlwifi: mvm: handle error from iwl_trans_update_sf
authorEyal Shapira <eyal@wizery.com>
Sun, 19 Oct 2014 11:56:40 +0000 (14:56 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 3 Nov 2014 18:09:21 +0000 (20:09 +0200)
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>
drivers/net/wireless/iwlwifi/mvm/fw.c

index e0d9f19650b07e5df8b56342ec5e6d1bef88194f..8c96e5af75f7e51136407a37a99ac0e48e4212cf 100644 (file)
@@ -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);