Re: [PATCH] drm/tve200: Fix probe cleanup after register failure

From: Linus Walleij

Date: Tue May 05 2026 - 05:23:44 EST


On Fri, Apr 24, 2026 at 2:41 PM Myeonghun Pak <mhun512@xxxxxxxxx> wrote:

> tve200_modeset_init() creates a panel bridge and initializes the DRM
> mode config before tve200_probe() registers the DRM device. If
> drm_dev_register() fails, probe returns an error and the driver's remove
> callback is not called, so those modeset resources are left behind.
>
> Unwind the panel bridge and mode config on that failure path before
> disabling the clock and dropping the DRM device reference.
>
> Signed-off-by: Myeonghun Pak <mhun512@xxxxxxxxx>

Patch applied to drm-misc-next.

Yours,
Linus Walleij