Skip to content

Commit abaf94e

Browse files
committed
nl80211: fix potential leak of ACL params
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 <[email protected]>
1 parent b5ac014 commit abaf94e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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 <[email protected]>
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>
@@ -5485,7 +5485,7 @@ static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info)
54855485
rdev, info->attrs[NL80211_ATTR_UNSOL_BCAST_PROBE_RESP],
54865486
&params);
54875487
if (err)
5488-
return err;
5488+
goto out;
54895489
}
54905490

54915491
nl80211_calculate_ap_params(&params);

0 commit comments

Comments
 (0)