turnip: Release bo_mutex lock before potential error path.
authorVinson Lee <vlee@freedesktop.org>
Thu, 17 Sep 2020 23:08:41 +0000 (16:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 17 Sep 2020 23:27:40 +0000 (23:27 +0000)
commitcde5b86a88c42c0139c0d685bd9844a7cee5dc4d
tree11c40b14f61df285f24a103d99cd6a7a6a322579
parentffbdbd631ad9aa391f5160bf50d6849d98bb6de4
turnip: Release bo_mutex lock before potential error path.

Fix defect reported by Coverity Scan.

Missing unlock (LOCK)
missing_unlock: Returning without unlocking queue->device->bo_mutex.

Suggested-by: Jonathan Marek <jonathan@marek.ca>
Fixes: bea6290ca090 ("turnip: device global bo list")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6768>
src/freedreno/vulkan/tu_drm.c