[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZZPM_bOQrRt0gaMa@TONYMAC-ALIBABA.local>
Date: Tue, 2 Jan 2024 16:44:45 +0800
From: Tony Lu <tonylu@...ux.alibaba.com>
To: Wen Gu <guwen@...ux.alibaba.com>
Cc: Markus Elfring <Markus.Elfring@....de>, linux-s390@...r.kernel.org,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
"D. Wythe" <alibuda@...ux.alibaba.com>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Jan Karcher <jaka@...ux.ibm.com>,
Paolo Abeni <pabeni@...hat.com>,
Wenjia Zhang <wenjia@...ux.ibm.com>
Subject: Re: [PATCH 0/2] net/smc: Adjustments for two function implementations
On Tue, Jan 02, 2024 at 04:13:09PM +0800, Wen Gu wrote:
>
>
> On 2023/12/31 22:55, Markus Elfring wrote:
> > From: Markus Elfring <elfring@...rs.sourceforge.net>
> > Date: Sun, 31 Dec 2023 15:48:45 +0100
> >
> > A few update suggestions were taken into account
> > from static source code analysis.
> >
> > Markus Elfring (2):
> > Return directly after a failed kzalloc() in smc_fill_gid_list()
> > Improve exception handling in smc_llc_cli_add_link_invite()
> >
> > net/smc/af_smc.c | 2 +-
> > net/smc/smc_llc.c | 15 +++++++--------
> > 2 files changed, 8 insertions(+), 9 deletions(-)
> >
> > --
> > 2.43.0
>
> Hi Markus. I see you want to fix the kfree(NULL) issues in these two patches.
>
> But I am wondering if this is necessary, since kfree() can handle NULL correctly.
I think the key point is that there are no necessary to call kfree() if
we can avoid this in normal logic.
Tony Lu
Powered by blists - more mailing lists