drm/vc4: Return an ERR_PTR from BO creation instead of NULL.
authorEric Anholt <eric@anholt.net>
Mon, 25 Jan 2016 22:13:12 +0000 (14:13 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 16 Feb 2016 20:20:58 +0000 (12:20 -0800)
commit2c68f1fcfb9cfc10deff9bc59774aa331a6fabd2
treecb3c3d95da6de1d2d60de17363b38ff8b4bc959b
parent54aec44ab02b1fa216706671ae12d64af74443c5
drm/vc4: Return an ERR_PTR from BO creation instead of NULL.

Fixes igt vc4_create_bo/create-bo-0 by returning -EINVAL from the
ioctl instead of -ENOMEM.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_bo.c
drivers/gpu/drm/vc4/vc4_gem.c
drivers/gpu/drm/vc4/vc4_irq.c
drivers/gpu/drm/vc4/vc4_render_cl.c
drivers/gpu/drm/vc4/vc4_validate.c