From: Richard Genoud Date: Tue, 3 Nov 2020 11:11:16 +0000 (+0100) Subject: fs/squashfs: sqfs_get_abs_path: fix error check X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=53db0e24a8f981c1e303a1c745b8f0e28544096f;p=u-boot.git fs/squashfs: sqfs_get_abs_path: fix error check the return value of sqfs_tokenize(rel_tokens, rc, rel); wasn't checked. (but "ret" value was !) This is obviouly a typo. Reviewed-by: Joao Marcos Costa Signed-off-by: Richard Genoud --- diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index b97a961c5e..825d5d13fa 100644 --- a/fs/squashfs/sqfs.c +++ b/fs/squashfs/sqfs.c @@ -359,7 +359,7 @@ static char *sqfs_get_abs_path(const char *base, const char *rel) if (ret) goto free_r_tokens; - sqfs_tokenize(rel_tokens, rc, rel); + ret = sqfs_tokenize(rel_tokens, rc, rel); if (ret) goto free_r_tokens;