]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: hci_sync: fix leaks when hci_cmd_sync_queue_once fails
authorPauli Virtanen <pav@iki.fi>
Wed, 25 Mar 2026 19:07:44 +0000 (21:07 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Apr 2026 20:45:00 +0000 (16:45 -0400)
commitaca377208e7f7322bf4e107cdec6e7d7e8aa7a88
tree6fd9e480a9ee32725d538a27205280c9fe6632af
parent2969554bcfccb5c609f6b6cd4a014933f3a66dd0
Bluetooth: hci_sync: fix leaks when hci_cmd_sync_queue_once fails

When hci_cmd_sync_queue_once() returns with error, the destroy callback
will not be called.

Fix leaking references / memory on these failures.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c