From: Philipp Zabel <p.zabel@pengutronix.de>
To: Zhao Dongdong <winter91@foxmail.com>,
wens@kernel.org, jernej.skrabec@gmail.com
Cc: linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Zhao Dongdong <zhaodongdong@kylinos.cn>,
stable@vger.kernel.org
Subject: Re: [PATCH] reset: sunxi: fix memory region leak on ioremap failure
Date: Thu, 02 Jul 2026 17:53:41 +0200 [thread overview]
Message-ID: <935ee4d2d6ba388c37337dc569cb118236ae8af5.camel@pengutronix.de> (raw)
In-Reply-To: <tencent_2C7697B076D53BBE62D99B7CD15E77A20C07@qq.com>
On Mi, 2026-06-17 at 11:16 +0800, Zhao Dongdong wrote:
> From: Zhao Dongdong <zhaodongdong@kylinos.cn>
>
> In sunxi_reset_init(), when ioremap() fails, the memory region obtained
> via request_mem_region() is not released, leading to a resource leak.
>
> Add an err_mem_region label to properly release the memory region before
> freeing the data structure.
[...]
Applied to reset/fixes, thanks!
[1/1] reset: sunxi: fix memory region leak on ioremap failure
https://git.kernel.org/pub/scm/linux/kernel/git/pza/linux.git/commit/?id=1a8c89f8c112
regards
Philipp
prev parent reply other threads:[~2026-07-02 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 3:16 Zhao Dongdong
2026-06-17 17:09 ` Jernej Škrabec
2026-06-18 9:49 ` Philipp Zabel
2026-07-02 15:53 ` Philipp Zabel [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=935ee4d2d6ba388c37337dc569cb118236ae8af5.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=jernej.skrabec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=wens@kernel.org \
--cc=winter91@foxmail.com \
--cc=zhaodongdong@kylinos.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®