Re: (subset) [PATCH] leds: ktd2692: Pass context to regulator cleanup
From: Lee Jones
Date: Tue Sep 22 2026 - 07:01:23 EST
On Thu, 10 Sep 2026 15:45:25 -0400, Myeonghun Pak wrote:
> regulator_disable_action() retrieves the driver context from device
> driver data. However, ktd2692_parse_dt() registers the action before
> ktd2692_probe() stores the context with platform_set_drvdata().
>
> If devm_add_action_or_reset() cannot allocate the action, it invokes the
> callback immediately. A later probe failure also invokes it during
> managed-resource unwinding. Both paths dereference a NULL context.
>
> [...]
Applied, thanks!
[1/1] leds: ktd2692: Pass context to regulator cleanup
commit: c73e9f04445f361d5f19ca2edfde742ce18348ef
--
Lee Jones [李琼斯]