Skip to content

Commit fea5234

Browse files
jmberg-intelgregkh
authored andcommitted
nl80211: fix potential leak of ACL params
commit abaf94e upstream. In case nl80211_parse_unsol_bcast_probe_resp() results in an error, need to "goto out" instead of just returning to free possibly allocated data. Fixes: 7443dcd ("nl80211: Unsolicited broadcast probe response support") Link: https://lore.kernel.org/r/20210408142833.d8bc2e2e454a.If290b1ba85789726a671ff0b237726d4851b5b0f@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 42e4450 commit fea5234

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/wireless/nl80211.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
66
* Copyright 2013-2014 Intel Mobile Communications GmbH
77
* Copyright 2015-2017 Intel Deutschland GmbH
8-
* Copyright (C) 2018-2020 Intel Corporation
8+
* Copyright (C) 2018-2021 Intel Corporation
99
*/
1010

1111
#include <linux/if.h>
@@ -5324,7 +5324,7 @@ static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info)
53245324
rdev, info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP],
53255325
&params);
53265326
if (err)
5327-
return err;
5327+
goto out;
53285328
}
53295329

53305330
nl80211_calculate_ap_params(&params);

0 commit comments

Comments
 (0)