]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:31:15 +0000 (14:31 -0500)
commit3d7594d9d9d18b712fa1542634cc5b78ee68ae7c
treec99f25c28854ecbd8fc857f9fa209fcb86a23cc8
parentac0912b41e13d6db2a443f7f4bd0d94572ef6c25
nl80211: Fix potential memory leak from parse_acl_data

commit 4baf6bea37247e59f1971e8009d13aeda95edba2 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c