Skip to content

Commit

Permalink
Bluetooth: Use bt_status to convert from errno
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luiz Augusto von Dentz committed Jul 22, 2022
1 parent ca2045e commit a86ddbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a86ddbf

Please sign in to comment.