From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
To: ioana.ciornei@nxp.com, stuart.yoder@freescale.com, agraf@suse.de,
German.Rivera@freescale.com, gregkh@linuxfoundation.org,
Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Cc: Christophe Leroy <chleroy@kernel.org>,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, Dan Carpenter <dan.carpenter@linaro.org>,
Su Hui <suhui@nfschina.com>
Subject: Re: [PATCH v3] bus: fsl-mc: fix an error handling in fsl_mc_device_add()
Date: Wed, 28 Jan 2026 13:43:32 +0100 [thread overview]
Message-ID: <176960420088.2084129.13365764643328327479.b4-ty@kernel.org> (raw)
In-Reply-To: <20260124102054.1613093-1-lihaoxiang@isrc.iscas.ac.cn>
On Sat, 24 Jan 2026 18:20:54 +0800, Haoxiang Li wrote:
> In fsl_mc_device_add(), device_initialize() is called first.
> put_device() should be called to drop the reference if error
> occurs. And other resources would be released via put_device
> -> fsl_mc_device_release. So remove redundant kfree() in
> error handling path.
>
>
> [...]
Applied, thanks!
[1/1] bus: fsl-mc: fix an error handling in fsl_mc_device_add()
commit: 52f527d0916bcdd7621a0c9e7e599b133294d495
Best regards,
--
Christophe Leroy (CS GROUP) <chleroy@kernel.org>
prev parent reply other threads:[~2026-01-28 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-24 10:20 [PATCH v3] bus: fsl-mc: fix an error handling in fsl_mc_device_add() Haoxiang Li
2026-01-24 10:47 ` Dan Carpenter
2026-01-26 9:45 ` Ioana Ciornei
2026-01-28 12:15 ` Ioana Ciornei
2026-01-28 12:43 ` Christophe Leroy (CS GROUP) [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=176960420088.2084129.13365764643328327479.b4-ty@kernel.org \
--to=chleroy@kernel.org \
--cc=German.Rivera@freescale.com \
--cc=agraf@suse.de \
--cc=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=ioana.ciornei@nxp.com \
--cc=lihaoxiang@isrc.iscas.ac.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=stable@vger.kernel.org \
--cc=stuart.yoder@freescale.com \
--cc=suhui@nfschina.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