From: Thorsten Blum <blum@kernel.org>
To: Haoxiang Li <haoxiang_li2024@163.com>
Cc: maddy@linux.ibm.com, npiggin@gmail.com, mpe@ellerman.id.au,
chleroy@kernel.org, ritesh.list@gmail.com, sshegde@linux.ibm.com,
hollisb@us.ibm.com, avi@redhat.com, yu.liu@freescale.com,
kvm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] KVM: PPC: Fix a memory leak in kvmppc_e500_init()
Date: Sat, 5 Dec 2026 22:46:27 +0100 [thread overview]
Message-ID: <axSGM77Bxfcp47eV@kernel.org> (raw)
In-Reply-To: <20261202091701.9062-1-haoxiang_li2024@163.com>
On Wed, Dec 02, 2026 at 05:17:01PM +0800, Haoxiang Li wrote:
> kvmppc_booke_init() allocates pages for the Book E exception
> handlers. If the kvm_init() call fails, kvmppc_e500_init()
> returns without freeing those pages. Free the pages on this
> error path.
>
> Fixes: bc8080cbcc88 ("KVM: ppc: E500 core-specific code")
> Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
> ---
Reviewed-by: Thorsten Blum <blum@kernel.org>
prev parent reply other threads:[~2026-12-05 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 9:17 [PATCH] KVM: PPC: Fix a memory leak in kvmppc_e500_init() Haoxiang Li
2026-12-05 21:46 ` Thorsten Blum [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=axSGM77Bxfcp47eV@kernel.org \
--to=blum@kernel.org \
--cc=avi@redhat.com \
--cc=chleroy@kernel.org \
--cc=haoxiang_li2024@163.com \
--cc=hollisb@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
--cc=sshegde@linux.ibm.com \
--cc=yu.liu@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.