--- x/net/ipv4/route.c +++ y/net/ipv4/route.c @@ -2478,7 +2478,7 @@ ip_route_input_rcu(struct sk_buff *skb, int our = 0; if (!in_dev) - return -EINVAL; + return reason; our = ip_check_mc_rcu(in_dev, daddr, saddr, ip_hdr(skb)->protocol);