mac80211: fix memory leak in device registration error path
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2012 08:47:27 +0000 (09:47 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2012 08:48:43 +0000 (09:48 +0100)
commitcfff2f999d9baa561f20d999c8b83b03f078fb8f
tree66e04272e2b723beb8ab60c413864bc562888ea1
parent987c285c2ae2e4e32aca3a9b3252d28171c75711
mac80211: fix memory leak in device registration error path

If the cipher suites need to be allocated, but this
allocation fails, this leaks the internal scan request.
Fix that by going to the correct error handling label.

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