From 53db0e24a8f981c1e303a1c745b8f0e28544096f Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Tue, 3 Nov 2020 12:11:16 +0100 Subject: [PATCH] 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 --- fs/squashfs/sqfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5