[PATCH] drm/imx/lcdc: Fix double-free of driver data

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Sep 19 19:55:46 UTC 2023


Hello,

On Thu, Jul 06, 2023 at 11:27:31AM +0200, Uwe Kleine-König wrote:
> The struct imx_lcdc driver data is allocated using devm_drm_dev_alloc()
> so it must not be explicitly kfree()d.
> 
> Also drm_kms_helper_poll_fini() should not be called as there is no
> matching drm_kms_helper_poll_init(). So drop the release function
> completely.
> 
> Fixes: c87e859cdeb5 ("drm/imx/lcdc: Implement DRM driver for imx25")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

This fix is now waiting for two months to be picked up. Who feels
responsible?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20230919/b50faf38/attachment.sig>


More information about the dri-devel mailing list