iwlwifi: mvm: fix missing cleanup in .start() error path
authorEliad Peller <eliadx.peller@intel.com>
Sun, 5 Jan 2014 10:41:12 +0000 (12:41 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 13 Jan 2014 16:42:49 +0000 (18:42 +0200)
commit91b0d1198417cf4fd9a7bd4138b6909f0b359099
tree867b109a3974d66091008e8375dfaef41982a181
parenta11e144e41f7979608c8bfd35b297b8162fcf32d
iwlwifi: mvm: fix missing cleanup in .start() error path

Cleanup of iwl_mvm_leds was missing in case of error,
resulting in the following warning:

WARNING: at lib/kobject.c:196 kobject_add_internal+0x1f4/0x210()
kobject_add_internal failed for phy0-led with -EEXIST, don't try to register things with the same name in the same directory.

which prevents further reloads of the driver.

Cc: stable@vger.kernel.org [3.10+]
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/ops.c