Re: [PATCH] drm/mediatek: Clean dangling pointer on bind error path

2022-11-22 Thread AngeloGioacchino Del Regno
Il 21/11/22 23:37, NĂ­colas F. R. A. Prado ha scritto: mtk_drm_bind() can fail, in which case drm_dev_put() is called, destroying the drm_device object. However a pointer to it was still being held in the private object, and that pointer would be passed along to DRM in mtk_drm_sys_prepare() if a s

[PATCH] drm/mediatek: Clean dangling pointer on bind error path

2022-11-21 Thread NĂ­colas F . R . A . Prado
mtk_drm_bind() can fail, in which case drm_dev_put() is called, destroying the drm_device object. However a pointer to it was still being held in the private object, and that pointer would be passed along to DRM in mtk_drm_sys_prepare() if a suspend were triggered at that point, resulting in a pani