]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: clean up key freeing a bit
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 21:53:52 +0000 (22:53 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Mar 2013 13:16:41 +0000 (15:16 +0200)
commit8dd946d23a44a73c5fa60e905ba49c4600e4189a
treea31ef2bc191d189378fc3520df7e8d303b65c0d1
parentc5311528284eaa65e9247a7b5af474ce6919b3e9
mac80211: clean up key freeing a bit

When a key is allocated but not really added, there's no
need to go through the entire teardown process. Also, if
adding a key fails, ieee80211_key_link() can take care of
freeing it instead of the (only) caller.

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