]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf057e5eb6e3311bb09569fd9cc1d55679c4bde5
treede90deadfe27057b77b99c3d7fe3b4fac0b69f54
parentf3a8ef5bb02cbc354cb42a0637e989bfcb1241d7
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: 7c303418236c ("nl80211: Add CONTROL_PORT_OVER_NL80211 attribute")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c