X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fcan%2Faf_can.c;h=150f0b261d7a6bab8ed407af463da37e3f091475;hb=26c5652a335bdf4a4476c9d23a0b381eaa3e2073;hp=f8df8f420fa13690b9d59249a9460e7a1724a2ef;hpb=ded40f69197fcdb5a223aef09cb3b382eaa36b85;p=pandora-kernel.git diff --git a/net/can/af_can.c b/net/can/af_can.c index f8df8f420fa1..150f0b261d7a 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -622,7 +622,10 @@ static int can_rcv_filter(struct dev_rcv_lists *d, struct sk_buff *skb) } } - /* check CAN_ID specific entries */ + /* check filterlists for single non-RTR can_ids */ + if (can_id & CAN_RTR_FLAG) + return matches; + if (can_id & CAN_EFF_FLAG) { hlist_for_each_entry_rcu(r, n, &d->rx[RX_EFF], list) { if (r->can_id == can_id) {