Message ID | alpine.DEB.2.22.394.2103271024110.2888@hadrien |
---|---|
State | New |
Headers | show |
Series | sit: use min | expand |
--- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -325,7 +325,7 @@ static int ipip6_tunnel_get_prl(struct n rcu_read_lock(); - ca = t->prl_count < cmax ? t->prl_count : cmax; + ca = min(t->prl_count, cmax); if (!kp) { /* We don't try hard to allocate much memory for