mesa/src/vulkan
Marcin Ślusarz 8408cce303 vulkan/wsi/x11: fix shm allocation control flow issue
shmget returns -1 on error. alloc_shm assigns it to an unsigned variable
and then checks whether it's < 0, which will never be true.

Found by Coverity.
CID: 1490891

Fixes: 1f55f9a97a ("vulkan/wsi/sw: add support for using host_ptr for shm pixmaps.")

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12696>
2021-09-03 08:33:36 +00:00
..
device-select-layer vulkan/device_select: avoid segfault on Wayland if wl_drm is unavailable 2021-05-04 21:26:21 +00:00
overlay-layer vulkan/overlay: Fix violation of VUID-VkMappedMemoryRange-size-01389 2021-07-30 11:38:40 +00:00
registry vulkan: Update the XML and headers to 1.2.190 2021-08-30 18:39:20 +00:00
util vulkan: Copy pNext structures when enqueuing commands 2021-09-03 07:33:21 +02:00
wsi vulkan/wsi/x11: fix shm allocation control flow issue 2021-09-03 08:33:36 +00:00
meson.build vulkan/wsi: add support for detecting mit-shm pixmaps. 2021-08-29 20:26:13 +00:00
vulkan-icd-symbols.txt vulkan: Allow global symbol HMI for Android 2020-08-05 18:08:07 +00:00