]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Jun 2015 19:27:11 +0000 (22:27 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Jun 2015 03:16:29 +0000 (13:16 +1000)
commit92e6b2e4a39fc7da275fb8ccc01b9a6fc3a9217c
tree811d0575913f6352d7a545d88004410b4c11008c
parent10c21e82abb307b42cf37a870e9231bf388b8939
drm/virtio: checking for NULL instead of IS_ERR

virtio_gpu_alloc_object() returns an error pointer, it never returns
NULL.

Fixes: ac71bec572f5 ('Add virtio gpu driver.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/virtio/virtgpu_fb.c