From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: matthias.bgg@gmail.com, Zilin Guan <zilin@seu.edu.cn>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
Jianhao Xu <jianhao.xu@seu.edu.cn>
Subject: Re: [PATCH v2] soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
Date: Thu, 08 Jan 2026 10:16:59 +0100 [thread overview]
Message-ID: <176786381930.9526.15054540392000699829.b4-ty@collabora.com> (raw)
In-Reply-To: <20251228162636.3829733-1-zilin@seu.edu.cn>
On Sun, 28 Dec 2025 16:26:36 +0000, Zilin Guan wrote:
> In svs_enable_debug_write(), the buf allocated by memdup_user_nul()
> is leaked if kstrtoint() fails.
>
> Fix this by using __free(kfree) to automatically free buf, eliminating
> the need for explicit kfree() calls and preventing leaks.
>
>
> [...]
Applied to v6.19-next/soc, thanks!
[1/1] soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
commit: ebede2ddeb047bdf7ee660a18403592c45d020d9
Cheers,
Angelo
prev parent reply other threads:[~2026-01-08 9:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-28 16:26 Zilin Guan
2025-12-29 8:19 ` Markus Elfring
2025-12-29 13:17 ` Zilin Guan
2026-01-08 9:16 ` AngeloGioacchino Del Regno [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=176786381930.9526.15054540392000699829.b4-ty@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=jianhao.xu@seu.edu.cn \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--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
all inboxes | Powered by JetHome®