From: Markus Elfring <Markus.Elfring@web.de>
To: Zilin Guan <zilin@seu.edu.cn>,
linux-i3c@lists.infradead.org,
Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Aniket <aniketmaurya@google.com>, Frank Li <Frank.Li@nxp.com>,
Jianhao Xu <jianhao.xu@seu.edu.cn>
Subject: Re: [PATCH] i3c: dw: Fix memory leak in dw_i3c_master_i2c_xfers()
Date: Mon, 26 Jan 2026 11:22:27 +0100 [thread overview]
Message-ID: <e1a21e4c-eb83-41bc-9b55-5332dff207a1@web.de> (raw)
In-Reply-To: <20260126081121.644099-1-zilin@seu.edu.cn>
…
> Add a dw_i3c_master_free_xfer() call to the error path to ensure the
> allocated memory is properly freed.
…
https://elixir.bootlin.com/linux/v6.19-rc5/source/drivers/i3c/master/dw-i3c-master.c#L1065-L1137
* Would you like to complete the exception handling by using another goto chain?
* How do you think about to increase the application of scope-based resource management?
See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v6.19-rc7#n34
Regards,
Markus
--
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c
next prev parent reply other threads:[~2026-01-26 10:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 8:11 [PATCH] i3c: dw: Fix memory leak in dw_i3c_master_i2c_xfers() Zilin Guan
2026-01-26 10:22 ` Markus Elfring [this message]
2026-01-26 17:01 ` Frank Li
2026-01-30 23:08 ` Alexandre Belloni
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=e1a21e4c-eb83-41bc-9b55-5332dff207a1@web.de \
--to=markus.elfring@web.de \
--cc=Frank.Li@nxp.com \
--cc=alexandre.belloni@bootlin.com \
--cc=aniketmaurya@google.com \
--cc=jianhao.xu@seu.edu.cn \
--cc=linux-i3c@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zilin@seu.edu.cn \
/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