netfilter: nf_conncount: fix argument order to find_next_bit
authorFlorian Westphal <fw@strlen.de>
Fri, 28 Dec 2018 00:24:49 +0000 (01:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 20:40:29 +0000 (21:40 +0100)
commit6567515e4a7c42931aefd2c503882839570b7546
treef1f2611f655906c0fda74447699495d19703bd4c
parentb01b92417d09b298ec6c29b8b560abced1e2ff97
netfilter: nf_conncount: fix argument order to find_next_bit

commit a007232066f6839d6f256bab21e825d968f1a163 upstream.

Size and 'next bit' were swapped, this bug could cause worker to
reschedule itself even if system was idle.

Fixes: 5c789e131cbb9 ("netfilter: nf_conncount: Add list lock and gc worker, and RCU for init tree search")
Reviewed-by: Shawn Bohrer <sbohrer@cloudflare.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_conncount.c