]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84fb189c86114ea6b3a9b0d3d0e84e0ede656a88
tree66e04272e2b723beb8ab60c413864bc562888ea1
parentae06faaed3429f2efb8b9a0c9c63a7d0c79f6b1d
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