From: Luiz Augusto von Dentz Date: Wed, 4 May 2022 23:49:17 +0000 (-0700) Subject: Bluetooth: Use bt_status to convert from errno X-Git-Tag: block-6.0-2022-08-12~31^2~75^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a86ddbffa6ed05bc2465a545a96627b6e776c019;p=linux-block.git 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 --- 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);