diff options
author | Serge Martin <[email protected]> | 2015-12-06 15:32:16 +0100 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-12-09 17:31:16 -0500 |
commit | 0149e7a944e65a0c7c6f7465ecf7103171943379 (patch) | |
tree | 27d62dc515e0f992f1823deb8e01b7bc72512030 | |
parent | e63fec29a1bde71a707ee6ac89763896e33e3c0c (diff) |
freedreno: change to goto fail
in fd_resource_transfer_map, like the others error cases
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 63ca9e30620..bcdd518c8bf 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -337,10 +337,8 @@ fd_resource_transfer_map(struct pipe_context *pctx, } buf = fd_bo_map(rsc->bo); - if (!buf) { - fd_resource_transfer_unmap(pctx, ptrans); - return NULL; - } + if (!buf) + goto fail; offset = slice->offset + box->y / util_format_get_blockheight(format) * ptrans->stride + |