From: Leon Romanovsky <leon@kernel.org>
To: jgg@ziepe.ca, Li Zhijian <lizhijian@fujitsu.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] RDMA/mlx5: no need to kfree NULL pointer
Date: Sun, 04 Dec 2022 15:35:12 +0200 [thread overview]
Message-ID: <167016091277.37965.6806153987261665211.b4-ty@kernel.org> (raw)
In-Reply-To: <20221203033714.25870-1-lizhijian@fujitsu.com>
On Sat, 3 Dec 2022 11:37:14 +0800, Li Zhijian wrote:
> Goto label 'free' where it will kfree the 'in' is not needed though
> it's safe to kfree NULL. Return err code directly to simplify the code.
>
> 1973 free:
> 1974 kfree(in);
> 1975 return err;
>
> [...]
Applied, thanks!
[1/1] RDMA/mlx5: no need to kfree NULL pointer
https://git.kernel.org/rdma/rdma/c/6978837ce42f8b
Best regards,
--
Leon Romanovsky <leon@kernel.org>
prev parent reply other threads:[~2022-12-04 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-03 3:37 Li Zhijian
2022-12-04 13:35 ` Leon Romanovsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=167016091277.37965.6806153987261665211.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lizhijian@fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®