diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-17 07:40:20 -0500 |
|---|---|---|
| committer | Eric Anholt <eric@anholt.net> | 2015-12-17 14:40:30 -0500 |
| commit | 5645e785cea2f33acdc5e5cee62b3ce8a00f1169 (patch) | |
| tree | 46c80d22db728752a18a3dad36d564df79444579 /drivers/gpu | |
| parent | 7e5082fbc00cc157e57a70cdb6b9bbb21289afb1 (diff) | |
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')
| -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 1928c0a454be..48ce30a6f4b5 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) | |||
| 580 | bo = vc4_bo_create(dev, exec_size, true); | 580 | bo = vc4_bo_create(dev, exec_size, true); |
| 581 | if (!bo) { | 581 | if (!bo) { |
| 582 | DRM_ERROR("Couldn't allocate BO for binning\n"); | 582 | DRM_ERROR("Couldn't allocate BO for binning\n"); |
| 583 | ret = PTR_ERR(exec->exec_bo); | 583 | ret = -ENOMEM; |
| 584 | goto fail; | 584 | goto fail; |
| 585 | } | 585 | } |
| 586 | exec->exec_bo = &bo->base; | 586 | exec->exec_bo = &bo->base; |
