From 606c44293e07efba49206f7c0c551313b5b36fe1 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:30 +0100 Subject: [PATCH] Revert "netfilter: nf_tables: elements with timeout below CONFIG_HZ never expire" This reverts commit 059c9b20b2bb793c4d6811f758535f70ffbf92d1. --- net/netfilter/nf_tables_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 5c937c556..87c572ba6 100755 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -4026,7 +4026,7 @@ int nf_msecs_to_jiffies64(const struct nlattr *nla, u64 *result) return -ERANGE; ms *= NSEC_PER_MSEC; - *result = nsecs_to_jiffies64(ms) ? : !!ms; + *result = nsecs_to_jiffies64(ms); return 0; }