Skip to content
Commit 526b4f4d authored by Ola Olsson's avatar Ola Olsson Committed by Greg Kroah-Hartman
Browse files

nl80211: Fix potential memory leak from parse_acl_data

commit 4baf6bea 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: 18998c38

 ("cfg80211: allow requesting SMPS mode on ap start")
Signed-off-by: default avatarOla Olsson <ola.olsson@sonymobile.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 901b9f45
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment