]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba2dd45bb023fa1f960641845a81ac9cb2c7f314
tree5de9079c702a8b3bc66a04a02fee3b5058b3c502
parent5eac4daafeb53af00d93104536ff87825ac19ca7
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