Files
linux-bredos/fs/erofs
Gao Xiang 90219ce716 erofs: fix memory leak on short-lived bounced pages
[ Upstream commit 93d6fda7f9 ]

Both MicroLZMA and DEFLATE algorithms can use short-lived pages on
demand for the overlapped 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: 67139e36d9 ("erofs: introduce `z_erofs_parse_in_bvecs'")
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/20231128180431.4116991-1-hsiangkao@linux.alibaba.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:17 -08:00
..
2023-08-11 12:11:17 +08:00
2023-08-24 16:20:30 -07:00
2023-04-17 01:15:50 +08:00
2023-08-11 12:11:17 +08:00
2023-04-17 01:15:54 +08:00
2023-08-11 12:11:17 +08:00