summaryrefslogtreecommitdiff
path: root/fs/squashfs
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@posteo.net>2020-11-03 12:11:16 +0100
committerTom Rini <trini@konsulko.com>2020-11-19 09:45:49 -0500
commit53db0e24a8f981c1e303a1c745b8f0e28544096f (patch)
tree94f9ade5b7edf1529b38f6a88b97355f5d7e046a /fs/squashfs
parentc9b8e86f8bd238421b35ec15d88b4d3cac8a0992 (diff)
downloadu-boot-53db0e24a8f981c1e303a1c745b8f0e28544096f.tar.gz
u-boot-53db0e24a8f981c1e303a1c745b8f0e28544096f.tar.bz2
u-boot-53db0e24a8f981c1e303a1c745b8f0e28544096f.zip
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>
Diffstat (limited to 'fs/squashfs')
-rw-r--r--fs/squashfs/sqfs.c2
1 files changed, 1 insertions, 1 deletions
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;