public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Bluetooth: ISO: free rx_skb if not consumed
@ 2025-09-22 18:11 Pauli Virtanen
  2025-09-22 18:11 ` [PATCH 2/2] Bluetooth: ISO: don't leak skb in ISO_CONT RX Pauli Virtanen
  2025-09-23 13:50 ` [PATCH 1/2] Bluetooth: ISO: free rx_skb if not consumed patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Pauli Virtanen @ 2025-09-22 18:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

If iso_conn is freed when RX is incomplete, free any leftover skb piece.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
---
 net/bluetooth/iso.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/bluetooth/iso.c b/net/bluetooth/iso.c
index 5c68c0ea7d97..d63d4d6f874c 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);
 }
 
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-23 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-22 18:11 [PATCH 1/2] Bluetooth: ISO: free rx_skb if not consumed Pauli Virtanen
2025-09-22 18:11 ` [PATCH 2/2] Bluetooth: ISO: don't leak skb in ISO_CONT RX Pauli Virtanen
2025-09-23 13:50 ` [PATCH 1/2] Bluetooth: ISO: free rx_skb if not consumed patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox