Re: [PATCH] drm/sun4i: Fix crash during suspend after component bind failure

From: Maxime Ripard
Date: Thu Jun 16 2022 - 03:53:24 EST


On Wed, 15 Jun 2022 00:42:53 -0500, Samuel Holland wrote:
> If the component driver fails to bind, or is unbound, the driver data
> for the top-level platform device points to a freed drm_device. If the
> system is then suspended, the driver passes this dangling pointer to
> drm_mode_config_helper_suspend(), which crashes.
>
> Fix this by only setting the driver data while the platform driver holds
> a reference to the drm_device.
>
> [...]

Applied to drm/drm-misc (drm-misc-fixes).

Thanks!
Maxime