[PATCH] btrfs: fix some error checking for btrfs_decompress()
Tom Rini
trini at konsulko.com
Wed Aug 9 03:40:48 CEST 2023
On Thu, Aug 03, 2023 at 01:29:34PM +0300, Dan Carpenter wrote:
> 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 at linaro.org>
> Reviewed-by: Qu Wenruo <wqu at suse.com>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230808/768bf7e4/attachment.sig>
More information about the U-Boot
mailing list