[PATCH] fs/squashfs: Set ret to 0 on successful read
Simon Glass
sjg at chromium.org
Tue Apr 21 09:58:19 CEST 2026
On 2026-04-20T16:35:31, Michael Zimmermann <sigmaepsilon92 at gmail.com> wrote:
> 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 at gmail.com>
>
> fs/squashfs/sqfs.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list