]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 4 Feb 2020 09:18:12 +0000 (09:18 +0000)
commite580d7a84591ded87a606ffce206523f1bc94ada
tree9c29a000e059ecaea50e0c5f243ace4cea542df1
parentf8fc5cddcab6941a279efd4fea07cd61ed0dfb6b
Bluetooth: btusb: fix non-atomic allocation in completion handler

BugLink: https://bugs.launchpad.net/bugs/1861784
commit 22cc6b7a1dbb58da4afc539d9b7d470b23a25eea upstream.

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

Fixes: a1c49c434e15 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/bluetooth/btusb.c