lib/test_bitmap.c: fix bitmap optimisation tests to report errors correctly
authorMatthew Wilcox <[email protected]>
Fri, 18 May 2018 23:08:44 +0000 (16:08 -0700)
committerLinus Torvalds <[email protected]>
Sat, 19 May 2018 00:17:12 +0000 (17:17 -0700)
commit1e3054b98c5415d5cb5f8824fc33b548ae5644c3
tree7dbee021ba882eb5a101cbb158a196fc5539818b
parent2c71d338bef2cc8a2e5f8ebe70788eeff246fcd8
lib/test_bitmap.c: fix bitmap optimisation tests to report errors correctly

I had neglected to increment the error counter when the tests failed,
which made the tests noisy when they fail, but not actually return an
error code.

Link: http://lkml.kernel.org/r/[email protected]
Fixes: 3cc78125a081 ("lib/test_bitmap.c: add optimisation tests")
Signed-off-by: Matthew Wilcox <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Reported-by: Michael Ellerman <[email protected]>
Tested-by: Michael Ellerman <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: Yury Norov <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: <[email protected]> [4.13+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/test_bitmap.c