diff --git a/net/ipv6/route.c b/net/ipv6/route.c index fb075d9545b9eccf2e63c7b5727734e79d715d44..27430d6e1a99ca9238eefb7076b41af150b926a1 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2745,7 +2745,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;