Re: [PATCH] arm_mpam: Release the mon_sel lock on mpam_save_mbwu_state() errors

From: Catalin Marinas

Date: Fri Oct 23 2026 - 13:32:50 EST


On Tue, 20 Oct 2026 19:48:07 +0800, Ping Li wrote:
> mpam_save_mbwu_state() takes the mon_sel lock at the top of each loop
> iteration, but the four error paths that return after failed
> MPAMF_MON_SEL register accesses do so without releasing it.
>
> Take the lock with the conditional mon_sel_lock guard class instead,
> so all exit paths release it.
>
> [...]

Applied to arm64 (for-next/core), thanks!

[1/1] arm_mpam: Release the mon_sel lock on mpam_save_mbwu_state() errors
https://git.kernel.org/arm64/c/643b64025650