Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: netfilter: Fix missing return values in conntrack_dump_flush

Fix the bug of some functions were missing return values.

Fixes: eff3c558bb7e ("netfilter: ctnetlink: support filtering by zone")
Signed-off-by: Guan Jing <guanjing@cmss.chinamobile.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

guanjing and committed by
Pablo Neira Ayuso
041bd1e4 df6cb25f

+6
+6
tools/testing/selftests/net/netfilter/conntrack_dump_flush.c
··· 43 43 mnl_attr_nest_end(nlh, nest_proto); 44 44 45 45 mnl_attr_nest_end(nlh, nest); 46 + 47 + return 0; 46 48 } 47 49 48 50 static int build_cta_tuple_v6(struct nlmsghdr *nlh, int type, ··· 73 71 mnl_attr_nest_end(nlh, nest_proto); 74 72 75 73 mnl_attr_nest_end(nlh, nest); 74 + 75 + return 0; 76 76 } 77 77 78 78 static int build_cta_proto(struct nlmsghdr *nlh) ··· 94 90 mnl_attr_nest_end(nlh, nest_proto); 95 91 96 92 mnl_attr_nest_end(nlh, nest); 93 + 94 + return 0; 97 95 } 98 96 99 97 static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh,