]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
f2fs: compress: fix to print raw data size in error path of lz4 decompression
authorChao Yu <chao@kernel.org>
Wed, 16 Mar 2022 10:20:00 +0000 (18:20 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:39:48 +0000 (14:39 +0200)
commitbe5495b5a9d0674c694ab809995b0aee2ed8a5b9
tree963cd26440c09c62a14ee1cc7faf0c7290f4a855
parent161a1a2f6c38b5c8c02bf5f26efa80065428df12
f2fs: compress: fix to print raw data size in error path of lz4 decompression

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit d284af43f703760e261b1601378a0c13a19d5f1f ]

In lz4_decompress_pages(), if size of decompressed data is not equal to
expected one, we should print the size rather than size of target buffer
for decompressed data, fix it.

Signed-off-by: Chao Yu <chao.yu@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 1a55c48bba8161b417efa3a2580e56602d161d9d)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/f2fs/compress.c