]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/syncobj: reject invalid flags in drm_syncobj_find_fence
authorErik Kurzinger <ekurzinger@nvidia.com>
Fri, 19 Jan 2024 16:32:07 +0000 (08:32 -0800)
committerSimon Ser <contact@emersion.fr>
Thu, 22 Feb 2024 10:26:52 +0000 (11:26 +0100)
commit18226ba52159257d4c2f777a168cc09adb3c1ac0
tree475d150f15135430b007a4da452db9208cfe6a57
parent8c44ea81634a4a337df70a32621a5f3791be23df
drm/syncobj: reject invalid flags in drm_syncobj_find_fence

The only flag that is meaningful to drm_syncobj_find_fence is
DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT. It should return -EINVAL for any
other flag bits.

Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Simon Ser <contact@emersion.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/20240119163208.3723457-2-ekurzinger@nvidia.com
drivers/gpu/drm/drm_syncobj.c