Commit 21ccc324 authored by Dan Carpenter's avatar Dan Carpenter Committed by Eric Anholt

drm/vc4: fix a bounds check

We accidentally return success even if vc4_full_res_bounds_check() fails.

Fixes: d5b1a78a ("drm/vc4: Add support for drawing 3D frames.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarEric Engestrom <eric@engestrom.ch>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
parent 7622b255
......@@ -461,7 +461,7 @@ static int vc4_rcl_surface_setup(struct vc4_exec_info *exec,
}
ret = vc4_full_res_bounds_check(exec, *obj, surf);
if (!ret)
if (ret)
return ret;
return 0;
......
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