Re: [PATCH] auxdisplay: charlcd: cancel backlight work on registration failure

From: Miguel Ojeda

Date: Sun Jul 19 2026 - 11:53:51 EST


On Sun, Jul 19, 2026 at 4:43 PM Hongyan Xu <getshell@xxxxxxxxxx> wrote:
>
> With CONFIG_CHARLCD_BL_FLASH, charlcd_init() schedules bl_work before
> charlcd_register() calls misc_register(). If registration fails, the
> caller frees the charlcd object while delayed work still contains its
> address.
>
> Cancel the delayed work and turn the backlight off before returning the
> registration error.
>
> Signed-off-by: Hongyan Xu <getshell@xxxxxxxxxx>

I think you may have used an out-of-date `MAINTAINERS` file...

Cc'ing auxdisplay as well as Lars and Willy who were involved in the
past with `charlcd`.

I hope that helps!

Cheers,
Miguel