From: Pauli Virtanen Date: Mon, 22 Sep 2025 18:11:21 +0000 (+0300) Subject: Bluetooth: ISO: free rx_skb if not consumed X-Git-Tag: v6.18-rc1~132^2~26^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ba85da5804efffe15c89b03742ea868f20b4172;p=thirdparty%2Fkernel%2Fstable.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 d24c7a1ace92b..ad5c8118a6e3d 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); }