aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2017-05-21 01:19:39 +0000
committerDaniel Vetter <[email protected]>2017-05-22 09:47:34 +0200
commite8fa49b5d974846d367b103edc026c4d2b90ebfd (patch)
tree0cfef27fd95b90636eec6d199c8746dd779fefe1 /tools/lib/api/debug.c
parenta18e6621d200193392369b84280e259077e75381 (diff)
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 <[email protected]> Reviewed-by: Chris Wilson <[email protected]> [danvet: Fix fixes: tag per Chris' review.] Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions