Bluetooth: ISO: Fix invalid context error
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Thu, 28 Sep 2023 07:52:57 +0000 (10:52 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Oct 2023 18:15:40 +0000 (11:15 -0700)
commitacab8ff29a2a226409cfe04e6d2e0896928c1b3a
tree24582565073dfbb99910322cb1563ab02ddccdda
parent92d4abd66f7080075793970fc8f241239e58a9e7
Bluetooth: ISO: Fix invalid context error

This moves the hci_le_terminate_big_sync call from rx_work
to cmd_sync_work, to avoid calling sleeping function from
an invalid context.

Reported-by: syzbot+c715e1bd8dfbcb1ab176@syzkaller.appspotmail.com
Fixes: a0bfde167b50 ("Bluetooth: ISO: Add support for connecting multiple BISes")
Signed-off-by: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_event.c