[PATCH 1/3] powercap: arm_scmi: Fix potential stale zones after a skipped leaf
Sudeep Holla
sudeep.holla at kernel.org
Mon Nov 16 07:25:25 PST 2026
On Sun, Nov 15, 2026 at 11:05:44AM +0000, Cristian Marussi wrote:
> From: Guangshuo Li <liguangshuo at mail.sdu.edu.cn>
>
> scmi_zones_register() skips leaf zones that cannot be registered, but
> returns the last leaf error when that leaf ends the traversal. Probe
> then fails without unregistering the successfully registered zones,
> whose private data is device-managed.
>
> Return success after completing the traversal. Keep the existing error
> return and full rollback for a failed non-leaf zone.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: 3e767d6850f8 ("powercap: arm_scmi: Remove recursion while parsing zones")
> Cc: "Rafael J. Wysocki" <rafael at kernel.org>
> Cc: stable at vger.kernel.org
Reviewed-by: Sudeep Holla <sudeep.holla at kernel.org>
> Signed-off-by: Guangshuo Li <liguangshuo at mail.sdu.edu.cn>
> Reviewed-by: Cristian Marussi <cristian.marussi at arm.com>
> Signed-off-by: Cristian Marussi <cristian.marussi at arm.com>
I may be wrong but sign-off when you repost means you are agreeing with
the change and hence review tag is not needed ?
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list