erofs: fix missing unmap if z_erofs_get_extent_compressedlen() fails
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 5 Dec 2022 15:00:49 +0000 (23:00 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 7 Dec 2022 02:56:31 +0000 (10:56 +0800)
commitd5d188b8f8b38d3d71dd05993874b4fc9284ce95
tree1f79a3757c0325b1252bf79be4fdf4c1f3f52ee6
parentc42c0ffe81176940bd5dead474216b7198d77675
erofs: fix missing unmap if z_erofs_get_extent_compressedlen() fails

Otherwise, meta buffers could be leaked.

Fixes: cec6e93beadf ("erofs: support parsing big pcluster compress indexes")
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20221205150050.47784-1-hsiangkao@linux.alibaba.com
fs/erofs/zmap.c