Unverified Commit dda59452 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14181 net: Fix icmp host relookup triggering ip_rt_bug

parents 5189a49e 556e0739
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -525,6 +525,9 @@ static struct rtable *icmp_route_lookup(struct net *net,
	if (!IS_ERR(rt)) {
		if (rt != rt2)
			return rt;
		if (inet_addr_type_dev_table(net, route_lookup_dev,
					     fl4->daddr) == RTN_LOCAL)
			return rt;
	} else if (PTR_ERR(rt) == -EPERM) {
		rt = NULL;
	} else