Commit 08de2141 authored by Rob Clark's avatar Rob Clark

drm/msm/gem: Fix error return on fence id alloc fail

This was a typo, we didn't actually want to return zero.

Fixes: a61acbbe ("drm/msm: Track "seqno" fences by idr")
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/491145/
Link: https://lore.kernel.org/r/20220624184528.4036837-1-robdclark@gmail.com
parent eb174bd8
...@@ -928,7 +928,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data, ...@@ -928,7 +928,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data,
INT_MAX, GFP_KERNEL); INT_MAX, GFP_KERNEL);
} }
if (submit->fence_id < 0) { if (submit->fence_id < 0) {
ret = submit->fence_id = 0; ret = submit->fence_id;
submit->fence_id = 0; submit->fence_id = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment