]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selftests: netfilter: Add missing return value
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Fri, 27 Sep 2024 03:22:05 +0000 (11:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:06 +0000 (12:00 +0200)
[ Upstream commit 10dbd23633f0433f8d13c2803d687b36a675ef60 ]

There is no return value in count_entries, just add it.

Fixes: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone")
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c

index bd9317bf5adafb4fc5d55a5bcba2b041e39cc50c..dc056fec993bd38059227a6050c8f1723cb038f1 100644 (file)
@@ -207,6 +207,7 @@ static int conntrack_data_generate_v6(struct mnl_socket *sock,
 static int count_entries(const struct nlmsghdr *nlh, void *data)
 {
        reply_counter++;
+       return MNL_CB_OK;
 }
 
 static int conntracK_count_zone(struct mnl_socket *sock, uint16_t zone)