drm/msm/gem: Fix error return on fence id alloc fail
PATCH 1/1 drm/msm/gem: Fix error return on fence id alloc fail
From: Rob Clark <[email protected]>
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 <[email protected]>
--- drivers/gpu/drm/msm/msm_gem_submit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_gem_submit.c +1 -1
@@ -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 ; }
Signature · 1 line
2.36.1
Quoted 7 lines · Rob Clark
From: Rob Clark <[email protected]>
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 <[email protected]>
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry