[PATCH] drm/sun4i: Fix crash during suspend after component bind failure
Maxime Ripard
maxime at cerno.tech
Thu Jun 16 00:53:06 PDT 2022
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
More information about the linux-arm-kernel
mailing list