iwlwifi: mvm: fix failure path when power_update fails in add_interface
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 27 Jan 2015 13:06:57 +0000 (15:06 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 1 Feb 2015 13:57:24 +0000 (15:57 +0200)
commitfd66fc1cafd72ddf27dbec3a5e29e99839d1bc84
tree1fcbf2db185f0cd7ca900367591e7977878249d8
parent5a4b2afa77dea0e0ce6aa1c3f0dbf90dd9a681eb
iwlwifi: mvm: fix failure path when power_update fails in add_interface

When iwl_mvm_power_update_mac() is called, we have already added the
mac context, so if this call fails we should remove the mac.

CC: <stable@vger.kernel.org> [3.15+]
Fixes: commit e5e7aa8e2561 ('iwlwifi: mvm: refactor power code')
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c