summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_event.c
diff options
context:
space:
mode:
authorAyush Garg <ayush.garg@samsung.com>2021-03-17 12:22:14 +0100
committerMarcel Holtmann <marcel@holtmann.org>2021-03-17 15:21:29 +0100
commit87df8bcccd2cede62dfb97dc3d4ca1fe66cb4f83 (patch)
tree499709abd2075188a2c0f01b9340d9f7c64c8fb0 /net/bluetooth/hci_event.c
parentBluetooth: avoid deadlock between hci_dev->lock and socket lock (diff)
downloadlinux-87df8bcccd2cede62dfb97dc3d4ca1fe66cb4f83.tar.xz
linux-87df8bcccd2cede62dfb97dc3d4ca1fe66cb4f83.zip
Bluetooth: Fix incorrect status handling in LE PHY UPDATE event
Skip updation of tx and rx PHYs values, when PHY Update event's status is not successful. Signed-off-by: Ayush Garg <ayush.garg@samsung.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to '')
-rw-r--r--net/bluetooth/hci_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index f4a734f8a9ac..cf2f4a0abdbd 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -5938,7 +5938,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);