Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e361d6f authored by Martin Townsend's avatar Martin Townsend Committed by Marcel Holtmann
Browse files

ieee802154: mac802154: handle the reserved dest mode by dropping the packet



If received frame contains the reserved destination address mode. The
frame should be dropped and free the skb.

Signed-off-by: default avatarMartin Townsend <martin.townsend@xsilon.com>
Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c4cb901a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -462,7 +462,10 @@ mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb,
			skb->pkt_type = PACKET_OTHERHOST;
		break;
	default:
		break;
		spin_unlock_bh(&sdata->mib_lock);
		pr_debug("invalid dest mode\n");
		kfree_skb(skb);
		return NET_RX_DROP;
	}

	spin_unlock_bh(&sdata->mib_lock);