]> git.baikalelectronics.ru Git - kernel.git/commit
init: fix error check in clean_path()
authorBarret Rhoden <brho@google.com>
Fri, 4 Sep 2020 13:53:32 +0000 (09:53 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2020 16:16:58 +0000 (09:16 -0700)
commit187417ae24e60b20f7687ba75ff833e8f0a922d6
treef9881dae5e1b7b38bc06f5cec665f6ff34868cf4
parent1c94759ea4adccacba7b662654b7f56636e039c2
init: fix error check in clean_path()

init_stat() returns 0 on success, same as vfs_lstat().  When it replaced
vfs_lstat(), the '!' was dropped.

Fixes: de8e07372451 ("init: add an init_stat helper")
Signed-off-by: Barret Rhoden <brho@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/initramfs.c