]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: fix non-atomic allocation in completion handler
authorJohan Hovold <johan@kernel.org>
Thu, 28 Nov 2019 18:24:27 +0000 (19:24 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 28 Nov 2019 18:29:01 +0000 (19:29 +0100)
commit77b15ac976e944c2b01cb415afb6504f8dd0d7cd
tree3edbad244e1fc9a276febba307fe514f40a4dd2e
parent5bc4fa0406e74136f2a97ba7c3b3f48a026bf48e
Bluetooth: btusb: fix non-atomic allocation in completion handler

USB completion handlers are called in atomic context and must
specifically not allocate memory using GFP_KERNEL.

Fixes: e5391bd07a11 ("Bluetooth: btusb: Add protocol support for MediaTek MT7668U USB devices")
Cc: stable <stable@vger.kernel.org> # 5.3
Cc: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c