Messages in this thread | | | From | Maxime Ripard <> | Subject | Re: [PATCH] drm/sun4i: Fix crash during suspend after component bind failure | Date | Thu, 16 Jun 2022 09:53:06 +0200 |
| |
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
| |