mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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: d5b1a78a77 ('drm/vc4: Add support for drawing 3D frames.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
7e5082fbc0
commit
5645e785ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue