aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 4504cb6af6ae..7a6f56b2f49d 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -431,10 +431,10 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8
431 if (type == LE_LINK) { 431 if (type == LE_LINK) {
432 le = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst); 432 le = hci_conn_hash_lookup_ba(hdev, LE_LINK, dst);
433 if (le) 433 if (le)
434 return NULL; 434 return ERR_PTR(-EBUSY);
435 le = hci_conn_add(hdev, LE_LINK, dst); 435 le = hci_conn_add(hdev, LE_LINK, dst);
436 if (!le) 436 if (!le)
437 return NULL; 437 return ERR_PTR(-ENOMEM);
438 if (le->state == BT_OPEN) 438 if (le->state == BT_OPEN)
439 hci_le_connect(le); 439 hci_le_connect(le);
440 440