Commits
Tomi Valkeinen committed f45a75a89e8
drm/omap: fix crash if state->fb is NULL Commit 5dd9a556bd46e0074132a49b3e5758c908fb1556 ("drm/omap: dynamically assign hw overlays to planes") changed omap_plane_atomic_check() so that the function no longer returns 0 at the very beginning if state->fb == NULL. This causes a crash when rotation is used and we call omap_framebuffer_supports_rotation(state->fb). Fix this by moving the rotation check inside if (state->visible) block. Reported-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>