commit | c38d27be7681a9dffe7656709d5a130553a40f99 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@linaro.org> | Thu Aug 03 13:29:34 2023 +0300 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 08 17:41:52 2023 -0400 |
tree | 6c755cfa5c0428970564da2b5c11c0df18785d4a | |
parent | 86604b79f688060336ce87805690334b7c539528 [diff] |
btrfs: fix some error checking for btrfs_decompress() The btrfs_decompress() function mostly (u32)-1 on error but it can also return -EPERM or other kernel error codes from zstd_decompress(). The "ret" variable is an int, so we could just check for negatives. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Qu Wenruo <wqu@suse.com>