Skip to content

Commit 4c1cb04

Browse files
Ding Xiangdanvet
authored andcommitted
drm/xen: fix passing zero to 'PTR_ERR' warning
Fix a static code checker warning: drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create() warn: passing zero to 'PTR_ERR' Signed-off-by: Ding Xiang <[email protected]> Reviewed-by: Oleksandr Andrushchenko <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b139f8b commit 4c1cb04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xen/xen_drm_front.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static int xen_drm_drv_dumb_create(struct drm_file *filp,
401401

402402
obj = xen_drm_front_gem_create(dev, args->size);
403403
if (IS_ERR_OR_NULL(obj)) {
404-
ret = PTR_ERR(obj);
404+
ret = PTR_ERR_OR_ZERO(obj);
405405
goto fail;
406406
}
407407

0 commit comments

Comments
 (0)