]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Fix WARN_ON logic in exit path
authorRichard Weinberger <richard@nod.at>
Sat, 13 Oct 2018 08:18:41 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Oct 2018 09:05:02 +0000 (11:05 +0200)
commit05a36732d040234d7c1f7aadbbfb7f1e4c981ffe
treec0a6860c48317aeb63cca6e54b14f0e85af3c756
parent774bf7252aed0dde1b93335b6de35fbd0740c7df
ubifs: Fix WARN_ON logic in exit path

ubifs_assert() is not WARN_ON(), so we have to invert
the checks.
Randy faced this warning with UBIFS being a module, since
most users use UBIFS as builtin because UBIFS is the rootfs
nobody noticed so far. :-(
Including me.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Fixes: fc037bb3c070 ("ubifs: Turn two ubifs_assert() into a WARN_ON()")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ubifs/super.c