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>
strerror(errno));
free(bo->map);
free(bo);
- return NULL;
+ bo = NULL;
+ goto done;
}
bo->offset = get.offset;
assert(bo->offset != 0);