mesa/src/broadcom
Juan A. Suarez Romero c93bd731f8 v3dv/pipeline_cache: bail out in case of error
Currently, in GetPipelineCacheData() function, in several cases if
there is an error the blob is finished and cache unlocked, but code
continues executing, which can lead to multiple
`pthread_mutex_unlock()` calls.

Instead, if there's an error just bail out to finish the blob and unlock
the cache directly.

Fixes CID#1468147 "Double unlock (LOCK)".

v2:
 - Rename "bail_out" by "done" (apinheiro)

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10404>
2021-04-22 11:40:40 +02:00
..
ci ci/v3d: execute all piglit tests 2021-04-22 07:53:39 +00:00
cle intel: Rename gen_10 to ver_10 2021-04-20 20:06:34 +00:00
clif
common
compiler broadcom/compiler: use VPM offsets in GS load_per_vertex input 2021-04-13 16:08:00 +00:00
drm-shim
qpu Use explicit break instead of fall-through to break-only case 2021-04-15 16:01:22 +00:00
simulator
vulkan v3dv/pipeline_cache: bail out in case of error 2021-04-22 11:40:40 +02:00
.editorconfig
Android.cle.mk
Android.genxml.mk
Android.mk
Makefile.sources
meson.build