media: ti: omap: release DSS compatibility layer on remove
Subsystems (2)
PATCH 1/1 media: ti: omap: release DSS compatibility layer on remove
omap_vout_probe() calls omapdss_compat_init(), while omap_vout_remove() does not call the corresponding omapdss_compat_uninit().
The probe failure paths release the DSS compatibility layer, but the normal remove path leaves it initialized after the video output device has been removed.
Call omapdss_compat_uninit() during remove after releasing the video device resources, matching the cleanup performed by the probe failure paths.
This issue was found by manual code inspection.
Fixes a9ee9f08b615 ("OMAPDSS: use omapdss_compat_init() in other drivers")
Signed-off-by Guangshuo Li <[email protected]>
--- drivers/media/platform/ti/omap/omap_vout.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/platform/ti/omap/omap_vout.c +1 -0
@@ -1586,6 +1586,7 @@ static void omap_vout_remove(struct platform_device *pdev)omap_dss_put_device (vid_dev->displays[k]); }kfree (vid_dev); +omapdss_compat_uninit (); }static int __init omap_vout_probe (struct platform_device *pdev)
Signature · 1 line
2.43.0