[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231123141051.GA13062@breakpoint.cc>
Date: Thu, 23 Nov 2023 15:10:51 +0100
From: Florian Westphal <fw@...len.de>
To: Simon Horman <horms@...nel.org>
Cc: Florian Westphal <fw@...len.de>, netfilter-devel@...r.kernel.org,
lorenzo@...nel.org, netdev@...r.kernel.org
Subject: Re: [PATCH nf-next 1/8] netfilter: flowtable: move nf_flowtable out
of container structures
Simon Horman <horms@...nel.org> wrote:
> > - err = nf_flow_table_init(&ct_ft->nf_ft);
> > + ct_ft->nf_ft = kzalloc(sizeof(*ct_ft->nf_ft), GFP_KERNEL);
> > + if (!ct_ft->nf_ft)
> > + goto err_alloc;
>
> Hi Florian,
>
> This branch will cause the function to return err, but err is 0 here.
> Perhaps it should be set to a negative error value instead?
Yes, this should fail with -ENOMEM.
Powered by blists - more mailing lists