mac80211: fix HW registration error paths
authorJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jan 2015 12:52:24 +0000 (13:52 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jan 2015 16:34:37 +0000 (17:34 +0100)
commit54330bf63b49683d006d8f3857d45722a8c0fbff
tree5de9079c702a8b3bc66a04a02fee3b5058b3c502
parentc1e140bf79d817d4a7aa9932eb98b0359c87af33
mac80211: fix HW registration error paths

Station info state is started in allocation, so should be
destroyed on free (it's just a timer); rate control must
be freed if anything afterwards fails to initialize.

LED exit should be later, no need for locking there, but
it needs to be done also when rate init failed.

Also clean up the code by moving a label so the locking
doesn't have to be done separately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c