Skip to content

Commit 08de214

Browse files
committed
drm/msm/gem: Fix error return on fence id alloc fail
This was a typo, we didn't actually want to return zero. Fixes: a61acbb ("drm/msm: Track "seqno" fences by idr") Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/491145/ Link: https://lore.kernel.org/r/[email protected]
1 parent eb174bd commit 08de214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/msm_gem_submit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
928928
INT_MAX, GFP_KERNEL);
929929
}
930930
if (submit->fence_id < 0) {
931-
ret = submit->fence_id = 0;
931+
ret = submit->fence_id;
932932
submit->fence_id = 0;
933933
}
934934

0 commit comments

Comments
 (0)