From a1589eb835ae19557aa8067f02d5dc3b50046ca9 Mon Sep 17 00:00:00 2001 From: Randall Stewart Date: Thu, 1 Aug 2019 20:26:27 +0000 Subject: [PATCH] Opps use fetchadd_u64 not long to keep old 32 bit platforms happy. --- sys/netinet/tcp_ratelimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_ratelimit.c b/sys/netinet/tcp_ratelimit.c index cd11855e46d8..f1a69a9b349c 100644 --- a/sys/netinet/tcp_ratelimit.c +++ b/sys/netinet/tcp_ratelimit.c @@ -1186,7 +1186,7 @@ tcp_rel_pacing_rate(const struct tcp_hwrate_limit_table *crte, struct tcpcb *tp) * in order to release our refcount. */ rs = __DECONST(struct tcp_rate_set *, crs); - pre = atomic_fetchadd_long(&rs->rs_flows_using, -1); + pre = atomic_fetchadd_64(&rs->rs_flows_using, -1); if (pre == 1) { mtx_lock(&rs_mtx); /*