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 <jmcosta944@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
This commit is contained in:
Richard Genoud 2020-11-03 12:11:16 +01:00 committed by Tom Rini
parent c9b8e86f8b
commit 53db0e24a8

View 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;