]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fs/squashfs: Set ret to 0 on successful read
authorMichael Zimmermann <sigmaepsilon92@gmail.com>
Mon, 20 Apr 2026 16:35:31 +0000 (18:35 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2026 17:28:10 +0000 (11:28 -0600)
commit30885b01aaa4bcdfa3fee9ca3066d3af563e6688
treef39dc3effdea14e44b0f3f8d63139836fef5b981
parent0d2e561ce40b58ea3cb19044375a8043b5330f6f
fs/squashfs: Set ret to 0 on successful read

It might still be a positive number due to the call to sqfs_disk_read.
This only happens when reading a file from an uncompressed squashfs.

I found this by trying to boot using the extlinux bootmethod, where
positive values are treated as errors.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Acked-by: Richard Genoud <richard.genoud@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
fs/squashfs/sqfs.c