Re: [PATCH v2] erofs: fix memory leak on short-lived bounced pages

From: Yue Hu
Date: Wed Nov 29 2023 - 00:39:34 EST


On Wed, 29 Nov 2023 02:04:31 +0800
Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx> wrote:

> Both MicroLZMA and DEFLATE algorithms can use short-lived pages on
> demand for overlap inplace I/O decompression.
>
> However, those short-lived pages are actually added to
> `be->compressed_pages`. Thus, it should be checked instead of
> `pcl->compressed_bvecs`.
>
> The LZ4 algorithm doesn't work like this, so it won't be impacted.
>
> Fixes: 67139e36d970 ("erofs: introduce `z_erofs_parse_in_bvecs'")
> Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>

Reviewed-by: Yue Hu <huyue2@xxxxxxxxxxx>