v3d: add missing unlock() in error path
authorEric Engestrom <eric@engestrom.ch>
Fri, 29 May 2020 18:19:22 +0000 (20:19 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 13 Jun 2020 00:45:47 +0000 (00:45 +0000)
commit6456f71f765ce5139970445ae71172462c268a33
treeb732cc23e13d8014182692dd6064d22a2b29476d
parent8c152a5e2ac562bbfd73a2998f344dcd143e0b8f
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 <eric@engestrom.ch>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5263>
src/gallium/drivers/v3d/v3d_bufmgr.c