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

!11193 net/ipv6: Fix the RT cache flush via sysctl using a previous delay

parents 2dfb1d54 7a4fcfb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5186,12 +5186,12 @@ int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write,
	if (!write)
		return -EINVAL;

	net = (struct net *)ctl->extra1;
	delay = net->ipv6.sysctl.flush_delay;
	ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
	if (ret)
		return ret;

	net = (struct net *)ctl->extra1;
	delay = net->ipv6.sysctl.flush_delay;
	fib6_run_gc(delay <= 0 ? 0 : (unsigned long)delay, net, delay > 0);
	return 0;
}