diff options
author | Eric Anholt <eric@anholt.net> | 2016-01-25 14:13:12 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-02-16 12:20:58 -0800 |
commit | 2c68f1fcfb9cfc10deff9bc59774aa331a6fabd2 (patch) | |
tree | cb3c3d95da6de1d2d60de17363b38ff8b4bc959b /drivers/gpu/drm/vc4/vc4_irq.c | |
parent | 54aec44ab02b1fa216706671ae12d64af74443c5 (diff) | |
download | linux-2c68f1fcfb9cfc10deff9bc59774aa331a6fabd2.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_irq.c')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_irq.c b/drivers/gpu/drm/vc4/vc4_irq.c index b68060e758db..78a21357fb2d 100644 --- a/drivers/gpu/drm/vc4/vc4_irq.c +++ b/drivers/gpu/drm/vc4/vc4_irq.c @@ -57,7 +57,7 @@ vc4_overflow_mem_work(struct work_struct *work) struct vc4_bo *bo; bo = vc4_bo_create(dev, 256 * 1024, true); - if (!bo) { + if (IS_ERR(bo)) { DRM_ERROR("Couldn't allocate binner overflow mem\n"); return; } |