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-Tag: firefly_0821_release~7613^2~503 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d7649a5cab7bd3dc44327f3e3787923aebdd7a49;p=firefly-linux-kernel-4.4.55.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 22939eb3cd16..2250217c6c5f 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -4128,7 +4128,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;