Skip to content
Permalink
Browse files
net: ieee802154: ca8210: Stop leaking skb's
Upon error the ieee802154_xmit_complete() helper is not called. Only
ieee802154_wake_queue() is called manually. We then leak the skb
structure.

Free the skb structure upon error before returning.

Fixes: ded845a ("ieee802154: Add CA8210 IEEE 802.15.4 device driver")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
  • Loading branch information
miquelraynal authored and intel-lab-lkp committed Jan 20, 2022
1 parent a4f6069 commit 77d3026b30aff560ef269d03aecc09f8c46a9173
Showing 1 changed file with 1 addition and 0 deletions.
@@ -1772,6 +1772,7 @@ static int ca8210_async_xmit_complete(
);
if (status != MAC_TRANSACTION_OVERFLOW) {
ieee802154_wake_queue(priv->hw);
dev_kfree_skb_any(atusb->tx_skb);
return 0;
}
}

0 comments on commit 77d3026

Please sign in to comment.