From fc19d1577de8fe3d0b9e8dff01861b937ae358c0 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Fri, 6 May 2011 18:41:44 -0300 Subject: [PATCH] --- yaml --- r: 247625 b: refs/heads/master c: 365227e5fdf3d117e096416d9d3cc148959a829e h: refs/heads/master i: 247623: 5ab61e43fa6b3f22a948bbf2982b788fac034547 v: v3 --- [refs] | 2 +- trunk/net/bluetooth/mgmt.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 70f0b925f292..6adbc1e78ba3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 83bc71b4102d2a288edaf9ee398b330b88a88086 +refs/heads/master: 365227e5fdf3d117e096416d9d3cc148959a829e diff --git a/trunk/net/bluetooth/mgmt.c b/trunk/net/bluetooth/mgmt.c index 2481d257ed98..dae382ce7020 100644 --- a/trunk/net/bluetooth/mgmt.c +++ b/trunk/net/bluetooth/mgmt.c @@ -1033,6 +1033,9 @@ static int disconnect(struct sock *sk, u16 index, unsigned char *data, u16 len) } conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &cp->bdaddr); + if (!conn) + conn = hci_conn_hash_lookup_ba(hdev, LE_LINK, &cp->bdaddr); + if (!conn) { err = cmd_status(sk, index, MGMT_OP_DISCONNECT, ENOTCONN); goto failed;