diff options
author | Rob Clark <robdclark@chromium.org> | 2022-06-24 20:45:28 +0200 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2022-06-27 21:48:27 +0200 |
commit | 08de214138cdea438a0dfcb10d355a6650c6017c (patch) | |
tree | ef51bf132d2e78ca4ec97c6c89ade7df011bca70 /drivers | |
parent | drm/msm/dpu: Fix variable dereferenced before check (diff) | |
download | linux-08de214138cdea438a0dfcb10d355a6650c6017c.tar.xz linux-08de214138cdea438a0dfcb10d355a6650c6017c.zip |
drm/msm/gem: Fix error return on fence id alloc fail
This was a typo, we didn't actually want to return zero.
Fixes: a61acbbe9cf8 ("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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gem_submit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem_submit.c b/drivers/gpu/drm/msm/msm_gem_submit.c index 286124008445..6b6feae1f7b6 100644 --- a/drivers/gpu/drm/msm/msm_gem_submit.c +++ b/drivers/gpu/drm/msm/msm_gem_submit.c @@ -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; } |