Commit 5aa329ce authored by Florian Grandel's avatar Florian Grandel Committed by Anas Nashif
Browse files

net: l2: ieee802154: mgmt: fix locking issue

Fixes a locking issue in the IEEE 802.15.4 net mgmt implementation.

Signed-off-by: default avatarFlorian Grandel <fgrandel@code-for-humans.de>
parent eb12c0c3
Loading
Loading
Loading
Loading
+1 −0
Changes for subsys/net/l2/ieee802154/ieee802154_mgmt.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -127,6 +127,7 @@ static int ieee802154_scan(uint32_t mgmt_request, struct net_if *iface,
		pkt = ieee802154_create_mac_cmd_frame(
			iface, IEEE802154_CFI_BEACON_REQUEST, &params);
		if (!pkt) {
			k_sem_give(&ctx->scan_ctx_lock);
			NET_DBG("Could not create Beacon Request");
			ret = -ENOBUFS;
			goto out;