]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: hci_sync: hci_cmd_sync_queue_once() return -EEXIST if exists
authorPauli Virtanen <pav@iki.fi>
Wed, 25 Mar 2026 19:07:43 +0000 (21:07 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Apr 2026 20:44:38 +0000 (16:44 -0400)
commit2969554bcfccb5c609f6b6cd4a014933f3a66dd0
treea7275eb4919b2341c456e319ac3c2716da11a4fb
parent2b2bf47cd75518c36fa2d41380e4a40641cc89cd
Bluetooth: hci_sync: hci_cmd_sync_queue_once() return -EEXIST if exists

hci_cmd_sync_queue_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 to handle that.

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