]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs/squashfs: sqfs_get_abs_path: fix error check
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:16 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
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 <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c

index b97a961c5e347392279b2a0b18d575e7350e7e97..825d5d13fa2822122db4a7ddaccf6ac95fa9f0ee 100644 (file)
@@ -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;