Skip to content
Snippets Groups Projects
Commit 08404fa2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tom Rini
Browse files

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: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarQu Wenruo <wqu@suse.com>
parent 939390b2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment