Skip to content
Commit 744451c1 authored by Benjamin Berg's avatar Benjamin Berg Committed by Marcel Holtmann
Browse files

Bluetooth: hci_sync: Push sync command cancellation to workqueue



syzbot reported that hci_cmd_sync_cancel may sleep from the wrong
context. To avoid this, create a new work item that pushes the relevant
parts into a different context.

Note that we keep the old implementation with the name
__hci_cmd_sync_cancel as the sleeping behaviour is desired in some
cases.

Reported-and-tested-by: default avatar <syzbot+485cc00ea7cf41dfdbf1@syzkaller.appspotmail.com>
Fixes: c97a747e ("Bluetooth: btusb: Cancel sync commands for certain URB errors")
Signed-off-by: default avatarBenjamin Berg <bberg@redhat.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent df1e5c51
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment