diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-09-17 10:32:20 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-01-17 19:28:53 +0100 |
commit | c877154d307f4a91e0b5b85b75535713dab945ae (patch) | |
tree | 88a8b224272d08b87ad8223d9c2eab97411140c0 /arch/c6x | |
parent | a8750ddca918032d6349adbf9a4b6555e7db20da (diff) | |
download | linux-c877154d307f4a91e0b5b85b75535713dab945ae.tar.gz linux-c877154d307f4a91e0b5b85b75535713dab945ae.tar.bz2 linux-c877154d307f4a91e0b5b85b75535713dab945ae.zip |
ubifs: Fix uninitialized variable in search_dh_cookie()
fs/ubifs/tnc.c: In function ‘search_dh_cookie’:
fs/ubifs/tnc.c:1893: warning: ‘err’ is used uninitialized in this function
Indeed, err is always used uninitialized.
According to an original review comment from Hyunchul, acknowledged by
Richard, err should be initialized to -ENOENT to avoid the first call to
tnc_next(). But we can achieve the same by reordering the code.
Fixes: 781f675e2d7e ("ubifs: Fix unlink code wrt. double hash lookups")
Reported-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions