[PATCH v2 18/28] fs/squashfs: sqfs_get_abs_path: fix error check

Richard Genoud richard.genoud at posteo.net
Tue Nov 3 12:11:16 CET 2020


the return value of sqfs_tokenize(rel_tokens, rc, rel); wasn't checked.
(but "ret" value was !)
This is obviouly a typo.

Signed-off-by: Richard Genoud <richard.genoud at posteo.net>
---
 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 b97a961c5e3..825d5d13fa2 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;
 


More information about the U-Boot mailing list