projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b8e86
)
fs/squashfs: sqfs_get_abs_path: fix error check
author
Richard Genoud
<richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:16 +0000
(12:11 +0100)
committer
Tom Rini
<trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000
(09:45 -0500)
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>
fs/squashfs/sqfs.c
patch
|
blob
|
history
diff --git
a/fs/squashfs/sqfs.c
b/fs/squashfs/sqfs.c
index
b97a961
..
825d5d1
100644
(file)
--- 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;