提交 c50ed066 编写于 作者: A Ayush Garg 提交者: Zheng Zengkai

Bluetooth: Fix incorrect status handling in LE PHY UPDATE event

stable inclusion
from stable-5.10.38
commit 18df2bc13b1f0bce0338ccc77b184a2fa6a6645e
bugzilla: 51875
CVE: NA

--------------------------------

[ Upstream commit 87df8bcc ]

Skip updation of tx and rx PHYs values, when PHY Update
event's status is not successful.
Signed-off-by: NAyush Garg <ayush.garg@samsung.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 0137b9dd
......@@ -5897,7 +5897,7 @@ static void hci_le_phy_update_evt(struct hci_dev *hdev, struct sk_buff *skb)
BT_DBG("%s status 0x%2.2x", hdev->name, ev->status);
if (!ev->status)
if (ev->status)
return;
hci_dev_lock(hdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册