]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
Bluetooth: btusb: Fix a unspported condition to set available debug features
authorJun Miao <jun.miao@windriver.com>
Fri, 9 Jul 2021 13:46:25 +0000 (21:46 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:27:43 +0000 (11:27 +0200)
commit41f1352e665805d911a39f0a5fa9d5c4fd8c24f6
treec0c88b69419d50ca337b0af400dd3cbb856249d9
parentb3a7c76ca089788e3539c5a167b9c12b56b69cdd
Bluetooth: btusb: Fix a unspported condition to set available debug features

BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit 20a831f04f1526f2c3442efd3dece8630216b5d2 ]

When reading the support debug features failed, there are not available
features init. Continue to set the debug features is illogical, we should
skip btintel_set_debug_features(), even if check it by "if (!features)".

Fixes: c453b10c2b28 ("Bluetooth: btusb: Configure Intel debug feature based on available support")
Signed-off-by: Jun Miao <jun.miao@windriver.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/bluetooth/btusb.c