Commit 6ba85da5 authored by Pauli Virtanen's avatar Pauli Virtanen Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: ISO: free rx_skb if not consumed



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

Fixes: dc26097b ("Bluetooth: ISO: Use kref to track lifetime of iso_conn")
Signed-off-by: default avatarPauli Virtanen <pav@iki.fi>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 9950f095
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
}