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

From: Andy Shevchenko

Date: Mon Aug 17 2026 - 03:57:04 EST


On Sat, Aug 15, 2026 at 06:59:50PM +0800, Hongyan Xu 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.
>
> Add charlcd_deinit() to cancel the delayed work and turn the backlight
> off. Use it for both registration rollback and normal unregistration.

Pushed to my review and testing queue, thanks!

--
With Best Regards,
Andy Shevchenko