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

Commit 7629d1ea authored by Martin Townsend's avatar Martin Townsend Committed by Marcel Holtmann
Browse files

mac802154: fixed potential skb leak with mac802154_parse_frame_start



This patch fix a memory leak if received frame was not able to parse.

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 77b2f286
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -573,6 +573,7 @@ void mac802154_wpans_rx(struct mac802154_priv *priv, struct sk_buff *skb)
	ret = mac802154_parse_frame_start(skb, &hdr);
	if (ret) {
		pr_debug("got invalid frame\n");
		kfree_skb(skb);
		return;
	}