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

Commit a374eeb5 authored by Phoebe Buckheister's avatar Phoebe Buckheister Committed by David S. Miller
Browse files

mac802154: properly free incoming skbs on decryption failure



mac802154 RX did not free skbs on decryption failure, assuming that the
caller would when the local rx handler returned _DROP. This was false.

Signed-off-by: default avatarPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5c48582
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -472,6 +472,7 @@ mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb,
	rc = mac802154_llsec_decrypt(&sdata->sec, skb);
	rc = mac802154_llsec_decrypt(&sdata->sec, skb);
	if (rc) {
	if (rc) {
		pr_debug("decryption failed: %i\n", rc);
		pr_debug("decryption failed: %i\n", rc);
		kfree_skb(skb);
		return NET_RX_DROP;
		return NET_RX_DROP;
	}
	}