drm/vc4: fix an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Dec 2015 12:40:20 +0000 (15:40 +0300)
committerEric Anholt <eric@anholt.net>
Thu, 17 Dec 2015 19:40:30 +0000 (11:40 -0800)
commit5645e785cea2f33acdc5e5cee62b3ce8a00f1169
tree46c80d22db728752a18a3dad36d564df79444579
parent7e5082fbc00cc157e57a70cdb6b9bbb21289afb1
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>
drivers/gpu/drm/vc4/vc4_gem.c