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)
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

Simple merge
Simple merge
Simple merge