diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-05-21 03:19:39 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-05-22 09:47:34 +0200 |
commit | e8fa49b5d974846d367b103edc026c4d2b90ebfd (patch) | |
tree | 0cfef27fd95b90636eec6d199c8746dd779fefe1 /include/drm | |
parent | drm/blend: Fix comment typ-o (diff) | |
download | linux-e8fa49b5d974846d367b103edc026c4d2b90ebfd.tar.xz linux-e8fa49b5d974846d367b103edc026c4d2b90ebfd.zip |
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: af33a9190d02 ("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
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions