]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:00:39 +0000 (10:00 +0200)
commit6c850fbe0d6fde0c975bc64a4f01fd8352967a47
tree2a9f19020b5dd0eb5a630abd46b95d499813d8fb
parent022ce06055929d3173cfbf361c8a7293d8c91393
Bluetooth: btusb: Fix a unspported condition to set available debug features

[ 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>
drivers/bluetooth/btusb.c