From a374eeb5e5b35c877a890dce5d3f7cca5a3e33f6 Mon Sep 17 00:00:00 2001 From: Phoebe Buckheister Date: Wed, 11 Jun 2014 12:03:06 +0200 Subject: 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: Phoebe Buckheister Signed-off-by: David S. Miller --- net/mac802154/wpan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'net/mac802154/wpan.c') diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c index 23bc91c..c8cfd54 100644 --- a/net/mac802154/wpan.c +++ b/net/mac802154/wpan.c @@ -472,6 +472,7 @@ mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb, rc = mac802154_llsec_decrypt(&sdata->sec, skb); if (rc) { pr_debug("decryption failed: %i\n", rc); + kfree_skb(skb); return NET_RX_DROP; } -- cgit v1.1