diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-08-25 15:35:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-25 15:35:20 -0400 |
commit | 0fdcaa5948f385bfaa5c22f90d3ace2f28e05447 (patch) | |
tree | 6f9e2f82d6530a408e2c51cbbb02ac54199faea8 /net/bluetooth/hci_conn.c | |
parent | 47e4df94d129cbca84de252ff63c4ded08a513e7 (diff) | |
parent | f161dd4122ffa73e4e12000309dca65bec80d416 (diff) |
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index b50dabb3f86a..faff6247ac8f 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -589,6 +589,14 @@ EXPORT_SYMBOL(hci_get_route); void hci_le_conn_failed(struct hci_conn *conn, u8 status) { struct hci_dev *hdev = conn->hdev; + struct hci_conn_params *params; + + params = hci_pend_le_action_lookup(&hdev->pend_le_conns, &conn->dst, + conn->dst_type); + if (params && params->conn) { + hci_conn_drop(params->conn); + params->conn = NULL; + } conn->state = BT_CLOSED; |