Harsha Sharma <[email protected]> wrote: > kcalloc is preferred to allocate an array instead of kzalloc. > This patch fixes checkpatch isssue. > > Signed-off-by: Harsha Sharma <[email protected]> > --- > net/netfilter/nfnetlink_cthelper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/netfilter/nfnetlink_cthelper.c > b/net/netfilter/nfnetlink_cthelper.c > index 41628b393673..f1ce335b9158 100644 > --- a/net/netfilter/nfnetlink_cthelper.c > +++ b/net/netfilter/nfnetlink_cthelper.c > @@ -189,7 +189,7 @@ nfnl_cthelper_parse_expect_policy(struct > nf_conntrack_helper *helper, > if (class_max > NF_CT_MAX_EXPECT_CLASSES) > return -EOVERFLOW; > > - expect_policy = kzalloc(sizeof(struct nf_conntrack_expect_policy) * > + expect_policy = kcalloc(sizeof(struct nf_conntrack_expect_policy) * > class_max, GFP_KERNEL);
Please at least compile test patches. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
