From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, Jyoti Gupta <jyoti@linux.ibm.com>
Cc: npiggin@gmail.com, chleroy@kernel.org, ritesh.list@gmail.com,
sshegde@linux.ibm.com, Sourabh Jain <sourabhjain@linux.ibm.com>,
"Mukesh Kumar Chaurasiya (IBM)" <mkchauras@gmail.com>,
Amit Machhiwal <amachhiw@linux.ibm.com>
Subject: Re: [PATCH v4] powerpc/mpic: Fix memory leak of mpic on error paths
Date: Mon, 30 Nov 2026 17:56:32 +0530 [thread overview]
Message-ID: <179604151702.510846.6163340487061154982.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20261119080118.48688-1-jyoti@linux.ibm.com>
On Thu, 19 Nov 2026 13:31:18 +0530, Jyoti Gupta wrote:
> mpic_alloc() allocates struct mpic (and optionally the protected
> sources bitmap) but does not free them when mpic_setup_error_int() or
> irq_domain_create_linear() fails, leaking the memory.
>
> Free the bitmap and the mpic in the common error path before
> dropping the device node reference.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/mpic: Fix memory leak of mpic on error paths
https://git.kernel.org/powerpc/c/8a810e5cf5e2e7e8ceb43cddc2065713f3f1e569
cheers
prev parent reply other threads:[~2026-11-30 12:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 8:01 [PATCH v4] powerpc/mpic: Fix memory leak of mpic on error paths Jyoti Gupta
2026-11-30 12:26 ` Madhavan Srinivasan [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=179604151702.510846.6163340487061154982.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=amachhiw@linux.ibm.com \
--cc=chleroy@kernel.org \
--cc=jyoti@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mkchauras@gmail.com \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
--cc=sourabhjain@linux.ibm.com \
--cc=sshegde@linux.ibm.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