Commit 13a0c40a authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPFB: fix releasing overlays

omapfb disables all the overlays when freeing resources, but it should
also remove those overlays from overlay managers.

Not doing so causes a crash if omapfb is unbound and bound, or omapfb
module is removed and loaded, while keeping omapdss around.

Fix this by calling unset_manager() for all overlays.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 63cec5a2
...@@ -1837,6 +1837,9 @@ static void omapfb_free_resources(struct omapfb2_device *fbdev) ...@@ -1837,6 +1837,9 @@ static void omapfb_free_resources(struct omapfb2_device *fbdev)
struct omap_overlay *ovl = fbdev->overlays[i]; struct omap_overlay *ovl = fbdev->overlays[i];
ovl->disable(ovl); ovl->disable(ovl);
if (ovl->manager)
ovl->unset_manager(ovl);
} }
for (i = 0; i < fbdev->num_fbs; i++) for (i = 0; i < fbdev->num_fbs; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment