mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 15:42:46 +00:00
Bluetooth: hci_sync: unlock on error in hci_inquiry_result_with_rssi_evt()
[ Upstream commitc07ba878ca
] Add unlocks to two error paths in hci_inquiry_result_with_rssi_evt(). Fixes:fee645033e
("Bluetooth: hci_event: Use skb_pull_data when processing inquiry results") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9549ac1894
commit
e5d6d748f8
1 changed files with 3 additions and 3 deletions
|
@ -4534,7 +4534,7 @@ static void hci_inquiry_result_with_rssi_evt(struct hci_dev *hdev, void *edata,
|
|||
if (!info) {
|
||||
bt_dev_err(hdev, "Malformed HCI Event: 0x%2.2x",
|
||||
HCI_EV_INQUIRY_RESULT_WITH_RSSI);
|
||||
return;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
bacpy(&data.bdaddr, &info->bdaddr);
|
||||
|
@ -4565,7 +4565,7 @@ static void hci_inquiry_result_with_rssi_evt(struct hci_dev *hdev, void *edata,
|
|||
if (!info) {
|
||||
bt_dev_err(hdev, "Malformed HCI Event: 0x%2.2x",
|
||||
HCI_EV_INQUIRY_RESULT_WITH_RSSI);
|
||||
return;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
bacpy(&data.bdaddr, &info->bdaddr);
|
||||
|
@ -4587,7 +4587,7 @@ static void hci_inquiry_result_with_rssi_evt(struct hci_dev *hdev, void *edata,
|
|||
bt_dev_err(hdev, "Malformed HCI Event: 0x%2.2x",
|
||||
HCI_EV_INQUIRY_RESULT_WITH_RSSI);
|
||||
}
|
||||
|
||||
unlock:
|
||||
hci_dev_unlock(hdev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue