can: omit received RTR frames for single ID filter lists

Since commit d253eee20195b25e298bf162a6e72f14bf4803e5 the single CAN
identifier filter lists handle only non-RTR CAN frames.

So we need to omit the check of these filter lists when receiving RTR
CAN frames.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Oliver Hartkopp and committed by David S. Miller f706644d 17b24b3c

+4 -1
+4 -1
net/can/af_can.c
··· 622 622 } 623 623 } 624 624 625 - /* check CAN_ID specific entries */ 625 + /* check filterlists for single non-RTR can_ids */ 626 + if (can_id & CAN_RTR_FLAG) 627 + return matches; 628 + 626 629 if (can_id & CAN_EFF_FLAG) { 627 630 hlist_for_each_entry_rcu(r, n, &d->rx[RX_EFF], list) { 628 631 if (r->can_id == can_id) {