nl80211: fix memory leak if validate_pae_over_nl80211() fails
authorJohannes Berg <johannes.berg@intel.com>
Sat, 15 Dec 2018 09:03:22 +0000 (11:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Dec 2018 08:40:17 +0000 (09:40 +0100)
commitd350a0f431189517b1af0dbbb605c273231a8966
treede90deadfe27057b77b99c3d7fe3b4fac0b69f54
parenta50e5fb8db83c5b57392204c21ea6c5c4ccefde6
nl80211: fix memory leak if validate_pae_over_nl80211() fails

If validate_pae_over_nl80211() were to fail in nl80211_crypto_settings(),
we might leak the 'connkeys' allocation. Fix this.

Fixes: 64bf3d4bc2b0 ("nl80211: Add CONTROL_PORT_OVER_NL80211 attribute")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c