|
@@ -6878,9 +6878,6 @@ static void l2cap_att_channel(struct l2cap_conn *conn,
|
|
|
|
|
|
BT_DBG("chan %p, len %d", chan, skb->len);
|
|
BT_DBG("chan %p, len %d", chan, skb->len);
|
|
|
|
|
|
- if (hci_blacklist_lookup(hcon->hdev, &hcon->dst, hcon->dst_type))
|
|
|
|
- goto drop;
|
|
|
|
-
|
|
|
|
if (chan->imtu < skb->len)
|
|
if (chan->imtu < skb->len)
|
|
goto drop;
|
|
goto drop;
|
|
|
|
|
|
@@ -6913,6 +6910,12 @@ static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (hci_blacklist_lookup(hcon->hdev, &hcon->dst,
|
|
|
|
+ bdaddr_type(hcon, hcon->dst_type))) {
|
|
|
|
+ kfree_skb(skb);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
BT_DBG("len %d, cid 0x%4.4x", len, cid);
|
|
BT_DBG("len %d, cid 0x%4.4x", len, cid);
|
|
|
|
|
|
switch (cid) {
|
|
switch (cid) {
|