Re: [PATCH v1 07/11] arm_mpam: Initialize all of struct mon_read in mpam_restore_mbwu_state()
From: Gavin Shan
Date: Thu Jul 16 2026 - 20:55:31 EST
On 7/10/26 9:55 PM, Ben Horgan wrote:
m->err may be read before initialization in __ris_msmon_read() when calledReviewed-by: Gavin Shan <gshan@xxxxxxxxxx>
from mpam_restore_mbwu_state().
Initialize the whole struct mon_read in mpam_restore_mbwu_state() and fix
the spelling of mbwu in the name.
Fixes: 41e8a14950e1 ("arm_mpam: Track bandwidth counter state for power management")
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
drivers/resctrl/mpam_devices.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)