From 334ffcda149468f5f8d5ca7d71e0c68e1d894638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 19 Nov 2025 09:09:01 -0800 Subject: [PATCH] iris: Release global_bufmgr_list_mutex on missing error paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Cc: stable Reported-by: Taketo Kabe Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13692 Signed-off-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/iris_bufmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index fafe2eed0de..65750f55461 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -2654,16 +2654,16 @@ iris_bufmgr_get_for_fd(int fd, bool bo_reuse) } if (!intel_get_device_info_from_fd(fd, &devinfo, 8, -1)) - return NULL; + goto unlock; if (devinfo.ver < 8 || devinfo.platform == INTEL_PLATFORM_CHV) - return NULL; + goto unlock; #ifndef INTEL_USE_ELK if (devinfo.ver < 9) { WARN_ONCE(devinfo.ver == 8, "ERROR: Iris was compiled without support for Gfx version 8.\n"); - return NULL; + goto unlock; } #endif