]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_conn: Use disable_delayed_work_sync
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 1 Oct 2024 16:34:06 +0000 (12:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:56 +0000 (20:03 +0100)
commitc55a4c5a04bae40dcdc1e1c19d8eb79a06fb3397
tree25ce47ecc30fcdfbcd9a0e71e694dd8e319eb5e9
parent1de7ce1a88cdd0575c1a2ca638cdb40db995a469
Bluetooth: hci_conn: Use disable_delayed_work_sync

[ Upstream commit 2b0f2fc9ed62e73c95df1fa8ed2ba3dac54699df ]

This makes use of disable_delayed_work_sync instead
cancel_delayed_work_sync as it not only cancel the ongoing work but also
disables new submit which is disarable since the object holding the work
is about to be freed.

Reported-by: syzbot+2446dd3cb07277388db6@syzkaller.appspotmail.com
Tested-by: syzbot+2446dd3cb07277388db6@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=2446dd3cb07277388db6
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_conn.c