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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:40:48 +0000 (14:40 -0800)
commitfce2d025479af5e1fa6717480c7853cdfb8b71aa
treed5cd93f7c95f52f11a3b2c785474af8687eaabe2
parent12faeccac04d9a018b662561204cb31c64aa3590
iwlwifi: mvm: fix failure path when power_update fails in add_interface

commit fd66fc1cafd72ddf27dbec3a5e29e99839d1bc84 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/mvm/mac80211.c