From: Gustavo F. Padovan Date: Wed, 8 Jun 2011 22:09:13 +0000 (-0300) Subject: Bluetooth: Don't forget to check for LE_LINK X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b569450682e944653f307b47c549ca12150d4596;p=deliverable%2Flinux.git Bluetooth: Don't forget to check for LE_LINK Otherwise the wrong error can be returned. Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 3b31a1f1f020..cb68b27edc9b 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -4127,7 +4127,7 @@ static int l2cap_disconn_ind(struct hci_conn *hcon) BT_DBG("hcon %p", hcon); - if (hcon->type != ACL_LINK || !conn) + if ((hcon->type != ACL_LINK && hcon->type != LE_LINK) || !conn) return 0x13; return conn->disc_reason;