Commit a7696ea7 authored by Jyri Sarha's avatar Jyri Sarha Committed by Tomi Valkeinen

drm/omap: drm_atomic_get_plane_state() may return ERR_PTR

drm_atomic_get_plane_state() may return ERR_PTR. Handle
drm_atomic_get_plane_state() return values right in
omap_crtc_atomic_set_property().
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Acked-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent 8e54adfd
...@@ -433,8 +433,8 @@ static int omap_crtc_atomic_set_property(struct drm_crtc *crtc, ...@@ -433,8 +433,8 @@ static int omap_crtc_atomic_set_property(struct drm_crtc *crtc,
*/ */
plane_state = drm_atomic_get_plane_state(state->state, plane); plane_state = drm_atomic_get_plane_state(state->state, plane);
if (!plane_state) if (IS_ERR(plane_state))
return -EINVAL; return PTR_ERR(plane_state);
return drm_atomic_plane_set_property(plane, plane_state, property, val); return drm_atomic_plane_set_property(plane, plane_state, property, val);
} }
......
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