From: Ping Li <leeonion.muyu@gmail.com>
To: ben.horgan@arm.com, james.morse@arm.com
Cc: Ping Li <leeonion.muyu@gmail.com>,
liguangshuo@mail.sdu.edu.cn, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, reinette.chatre@intel.com,
fenghuay@nvidia.com
Subject: Re: [PATCH] arm_mpam: Free error_dev_id when destroying an MSC
Date: Fri, 4 Dec 2026 11:28:31 +0800 [thread overview]
Message-ID: <20261204032831.3091380-1-leeonion.muyu@gmail.com> (raw)
In-Reply-To: <c02a5743-281e-4581-8acb-6f0071fe4959@arm.com>
Hi Ben,
On 03/12/2026 16:15, Ben Horgan wrote:
> With this the msc->error_dev_id is still leaked if the probe fails. As such, I'm planning on taking
> https://lore.kernel.org/linux-arm-kernel/20261124135843.2276437-1-liguangshuo@mail.sdu.edu.cn/ instead of this patch
> even though you did post first.
Thanks for taking a look, and for the pointer to Guangshuo's patch.
You're right - mine only hooks mpam_msc_destroy(), so probe failures
after mpam_msc_setup_error_irq() still leak the allocation. I've read
the devm_alloc_percpu() version and am happy to withdraw mine in its
favour - devres cleanup covers both the probe-failure path and device
removal.
Glad the bug is being fixed either way.
Thanks,
Ping
prev parent reply other threads:[~2026-12-04 3:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 11:19 Ping Li
2026-12-03 16:15 ` Ben Horgan
2026-12-04 3:28 ` Ping Li [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=20261204032831.3091380-1-leeonion.muyu@gmail.com \
--to=leeonion.muyu@gmail.com \
--cc=ben.horgan@arm.com \
--cc=fenghuay@nvidia.com \
--cc=james.morse@arm.com \
--cc=liguangshuo@mail.sdu.edu.cn \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=reinette.chatre@intel.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
all inboxes | Powered by JetHome®