aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2020-05-29 20:19:22 +0200
committerMarge Bot <[email protected]>2020-06-13 00:45:47 +0000
commit6456f71f765ce5139970445ae71172462c268a33 (patch)
treeb732cc23e13d8014182692dd6064d22a2b29476d /src/gallium
parent8c152a5e2ac562bbfd73a2998f344dcd143e0b8f (diff)
v3d: add missing unlock() in error path
CoverityID: 1435701 Fixes: e5a81ac70431502bc592 ("broadcom/vc5: Don't forget to get the BO offset when opening a dmabuf.") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5263>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/v3d/v3d_bufmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c b/src/gallium/drivers/v3d/v3d_bufmgr.c
index 31a08036b38..dd8a2e98611 100644
--- a/src/gallium/drivers/v3d/v3d_bufmgr.c
+++ b/src/gallium/drivers/v3d/v3d_bufmgr.c
@@ -367,7 +367,8 @@ v3d_bo_open_handle(struct v3d_screen *screen,
strerror(errno));
free(bo->map);
free(bo);
- return NULL;
+ bo = NULL;
+ goto done;
}
bo->offset = get.offset;
assert(bo->offset != 0);