mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
Bluetooth: ISO: free rx_skb if not consumed
If iso_conn is freed when RX is incomplete, free any leftover skb piece.
Fixes: dc26097bdb ("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>
This commit is contained in:
parent
9950f095d6
commit
6ba85da580
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user