drm/i915: Fix an error checking test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 27 Jun 2017 05:38:54 +0000 (07:38 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Jun 2017 13:30:56 +0000 (14:30 +0100)
commit7c3f5317b8c2828ab10e8cf87c8ab5232d1966d0
treef2c8ca25ff3de0240abc6cf29104ef024ffd7a28
parent774eed4a408185d7a2cde16f40b1806d4fb1d531
drm/i915: Fix an error checking test

'dma_buf_vmap' returns NULL on error, not an error pointer.

Fixes: 6cca22ede8a4 ("drm/i915: Add some mock tests for dmabuf interop")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: http://patchwork.freedesktop.org/patch/msgid/20170627053854.21152-1-christophe.jaillet@wanadoo.fr
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/selftests/i915_gem_dmabuf.c