Skip to content

Commit

Permalink
drm/vc4: fix an error code
Browse files Browse the repository at this point in the history
"exec->exec_bo" is NULL at this point so this code returns success.  We
want to return -ENOMEM.

Fixes: d5b1a78 ('drm/vc4: Add support for drawing 3D frames.')
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
  • Loading branch information
Dan Carpenter authored and anholt committed Dec 17, 2015
1 parent 7e5082f commit 5645e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vc4/vc4_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ vc4_get_bcl(struct drm_device *dev, struct vc4_exec_info *exec)
bo = vc4_bo_create(dev, exec_size, true);
if (!bo) {
DRM_ERROR("Couldn't allocate BO for binning\n");
ret = PTR_ERR(exec->exec_bo);
ret = -ENOMEM;
goto fail;
}
exec->exec_bo = &bo->base;
Expand Down

0 comments on commit 5645e78

Please sign in to comment.