1
0
Fork 0
alistair23-linux/drivers/gpu
Wei Yongjun e8fa49b5d9 drm/vgem: Fix return value check in vgem_init()
In case of error, the function platform_device_register_simple() returns
ERR_PTR() and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

Fixes: af33a9190d ("drm/vgem: Enable dmabuf import interfaces")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Fix fixes: tag per Chris' review.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170521011939.8111-1-weiyj.lk@gmail.com
2017-05-22 09:47:34 +02:00
..
drm drm/vgem: Fix return value check in vgem_init() 2017-05-22 09:47:34 +02:00
host1x gpu: host1x: select IOMMU_IOVA 2017-05-18 10:17:43 -04:00
ipu-v3 gpu: ipu-v3: don't depend on DRM being enabled 2017-04-04 10:58:56 +02:00
vga Pointer for Markus's image conversion work. 2017-03-14 15:07:33 +01:00
Makefile