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: v6.1-rc5~731^2~75^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a86ddbffa6ed05bc2465a545a96627b6e776c019;p=platform%2Fkernel%2Flinux-starfive.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 7829433..1ce89c4 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);