diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-17 15:40:20 +0300 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-12-17 11:40:30 -0800 |
commit | 5645e785cea2f33acdc5e5cee62b3ce8a00f1169 (patch) | |
tree | 46c80d22db728752a18a3dad36d564df79444579 /drivers/gpu/drm/vc4 | |
parent | 7e5082fbc00cc157e57a70cdb6b9bbb21289afb1 (diff) | |
download | op-kernel-dev-5645e785cea2f33acdc5e5cee62b3ce8a00f1169.zip op-kernel-dev-5645e785cea2f33acdc5e5cee62b3ce8a00f1169.tar.gz |
drm/vc4: fix an error code
"exec->exec_bo" is NULL at this point so this code returns success. We
want to return -ENOMEM.
Fixes: d5b1a78a772f ('drm/vc4: Add support for drawing 3D frames.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/vc4')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_gem.c b/drivers/gpu/drm/vc4/vc4_gem.c index 1928c0a..48ce30a 100644 --- a/drivers/gpu/drm/vc4/vc4_gem.c +++ b/drivers/gpu/drm/vc4/vc4_gem.c @@ -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; |