]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: ISO: free rx_skb if not consumed
authorPauli Virtanen <pav@iki.fi>
Mon, 22 Sep 2025 18:11:21 +0000 (21:11 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 27 Sep 2025 15:37:43 +0000 (11:37 -0400)
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 <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c

index d24c7a1ace92bba2ff1374e319a320aa06bb9378..ad5c8118a6e3dbd3550da2be34feddbddeabdcb7 100644 (file)
@@ -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);
 }