From: Pauli Virtanen Date: Mon, 22 Sep 2025 18:11:21 +0000 (+0300) Subject: Bluetooth: ISO: free rx_skb if not consumed X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6ba85da5804efffe15c89b03742ea868f20b4172;p=users%2Fhch%2Fmisc.git Bluetooth: ISO: free rx_skb if not consumed If iso_conn is freed when RX is incomplete, free any leftover skb piece. Fixes: dc26097bdb86 ("Bluetooth: ISO: Use kref to track lifetime of iso_conn") Signed-off-by: Pauli Virtanen Signed-off-by: Luiz Augusto von Dentz --- diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c index d24c7a1ace92..ad5c8118a6e3 100644 --- a/net/bluetooth/iso.c +++ b/net/bluetooth/iso.c @@ -111,6 +111,8 @@ static void iso_conn_free(struct kref *ref) /* Ensure no more work items will run since hci_conn has been dropped */ disable_delayed_work_sync(&conn->timeout_work); + kfree_skb(conn->rx_skb); + kfree(conn); }