]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nl80211: Fix potential memory leak from parse_acl_data
authorOla Olsson <ola1olsson@gmail.com>
Thu, 29 Oct 2015 06:04:58 +0000 (07:04 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Nov 2015 09:40:58 +0000 (10:40 +0100)
commit4baf6bea37247e59f1971e8009d13aeda95edba2
treee64df44ad8496ec39bfd9461a932975c06ab7c51
parent519ee6918b91abdc4bc9720deae17599a109eb40
nl80211: Fix potential memory leak from parse_acl_data

If parse_acl_data succeeds but the subsequent parsing of smps
attributes fails, there will be a memory leak due to early returns.
Fix that by moving the ACL parsing later.

Cc: stable@vger.kernel.org
Fixes: 18998c381b19b ("cfg80211: allow requesting SMPS mode on ap start")
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c