drm/msm: Disallow submit with fence id 0
authorRob Clark <robdclark@chromium.org>
Mon, 24 Jul 2023 20:30:21 +0000 (13:30 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 26 Jul 2023 17:50:04 +0000 (10:50 -0700)
commit1b5d0ddcb34a605835051ae2950d5cfed0373dd8
tree7ff7ef590d6199e16c93bf0937c2393dd28a3620
parent1cd0787f082e1a179f2b6e749d08daff1a9f6b1b
drm/msm: Disallow submit with fence id 0

A fence id of zero is expected to be invalid, and is not removed from
the fence_idr table.  If userspace is requesting to specify the fence
id with the FENCE_SN_IN flag, we need to reject a zero fence id value.

Fixes: 17154addc5c1 ("drm/msm: Add MSM_SUBMIT_FENCE_SN_IN")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/549180/
drivers/gpu/drm/msm/msm_gem_submit.c