diff --git a/net/ipv6/route.c b/net/ipv6/route.c index c2db4018ba40..00921e4d43b5 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2393,7 +2393,8 @@ static void __ip6_rt_update_pmtu(struct dst_entry *dst, const struct sock *sk, if (confirm_neigh) dst_confirm_neigh(dst, daddr); - mtu = max_t(u32, mtu, IPV6_MIN_MTU); + if (mtu < IPV6_MIN_MTU) + return; if (mtu >= dst_mtu(dst)) return;