]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: hci_sync: make hci_cmd_sync_run_once return -EEXIST if exists
authorPauli Virtanen <pav@iki.fi>
Wed, 25 Mar 2026 19:07:45 +0000 (21:07 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 13 Apr 2026 13:18:16 +0000 (09:18 -0400)
commitd288f4db0909c22342eb50cd1632b4d850517281
tree68636e9f120bfe97079d03035a3299b01831e8f0
parent7b75867803a8712bdf7683c31d71d3d5e28ce821
Bluetooth: hci_sync: make hci_cmd_sync_run_once return -EEXIST if exists

hci_cmd_sync_run_once() needs to indicate whether a queue item was
added, so caller can know if callbacks are called, so it can avoid
leaking resources.

Change the function to return -EEXIST if queue item already exists.

Modify all callsites vs. the changes.  The only callsite is
hci_abort_conn().

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