summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-05-04 16:49:17 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-21 17:15:55 -0700
commita86ddbffa6ed05bc2465a545a96627b6e776c019 (patch)
tree05ec145a5b7921be53c4edd5d071d5a11036e62c /net/bluetooth
parentca2045e059c3aa1b06c9aed448672bc86dfdce11 (diff)
downloadlinux-rpi-a86ddbffa6ed05bc2465a545a96627b6e776c019.tar.gz
linux-rpi-a86ddbffa6ed05bc2465a545a96627b6e776c019.tar.bz2
linux-rpi-a86ddbffa6ed05bc2465a545a96627b6e776c019.zip
Bluetooth: Use bt_status to convert from errno
If a command cannot be sent or there is a internal error an errno maybe set instead of a command status. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 7829433d54c1..1ce89c469293 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -950,7 +950,7 @@ static void create_le_conn_complete(struct hci_dev *hdev, void *data, int err)
if (conn != hci_lookup_le_connect(hdev))
goto done;
- hci_conn_failed(conn, err);
+ hci_conn_failed(conn, bt_status(err));
done:
hci_dev_unlock(hdev);