Skip to content

Commit

Permalink
drm/msm/gem: Fix error return on fence id alloc fail
Browse files Browse the repository at this point in the history
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 <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/491145/
Link: https://lore.kernel.org/r/20220624184528.4036837-1-robdclark@gmail.com
  • Loading branch information
Rob Clark committed Jun 27, 2022
1 parent eb174bd commit 08de214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/msm/msm_gem_submit.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
INT_MAX, GFP_KERNEL);
}
if (submit->fence_id < 0) {
ret = submit->fence_id = 0;
ret = submit->fence_id;
submit->fence_id = 0;
}

Expand Down

0 comments on commit 08de214

Please sign in to comment.