diff options
author | Dave Airlie <airlied@redhat.com> | 2022-06-29 14:16:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2022-06-29 14:16:46 +1000 |
commit | 76f0544428aced9e2f0d50ac7429e0f3064658cd (patch) | |
tree | 25537d9d83b77b819fb212f8da9baf4cc2acac76 /drivers/gpu/drm/msm/msm_gem_submit.c | |
parent | 03c765b0e3b4cb5063276b086c76f7a612856a9a (diff) | |
parent | 08de214138cdea438a0dfcb10d355a6650c6017c (diff) | |
download | linux-76f0544428aced9e2f0d50ac7429e0f3064658cd.tar.gz linux-76f0544428aced9e2f0d50ac7429e0f3064658cd.tar.bz2 linux-76f0544428aced9e2f0d50ac7429e0f3064658cd.zip |
Merge tag 'drm-msm-fixes-2022-06-28' of https://gitlab.freedesktop.org/drm/msm into drm-fixes
Fixes for v5.19-rc5
- Fix to increment vsync_cnt before calling drm_crtc_handle_vblank so that
userspace sees the value *after* it is incremented if waiting for vblank
events
- Fix to reset drm_dev to NULL in dp_display_unbind to avoid a crash in
probe/bind error paths
- Fix to resolve the smatch error of de-referencing before NULL check in
dpu_encoder_phys_wb.c
- Fix error return to userspace if fence-id allocation fails in submit
ioctl
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGvswNKdd02EYKYv5Zjv7f+mcqeWC7hHQ1SBjqYzN_ZHnA@mail.gmail.com
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem_submit.c')
-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 3c3a0cfade36..c9e4aeb14f4a 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; } |