diff options
author | Richard Genoud <richard.genoud@posteo.net> | 2020-11-03 14:11:16 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-19 17:45:49 +0300 |
commit | 53db0e24a8f981c1e303a1c745b8f0e28544096f (patch) | |
tree | 94f9ade5b7edf1529b38f6a88b97355f5d7e046a /fs/squashfs/sqfs.c | |
parent | c9b8e86f8bd238421b35ec15d88b4d3cac8a0992 (diff) | |
download | u-boot-53db0e24a8f981c1e303a1c745b8f0e28544096f.tar.xz |
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/sqfs.c')
-rw-r--r-- | fs/squashfs/sqfs.c | 2 |
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; |