]> git.baikalelectronics.ru Git - kernel.git/commit
coccicheck: return proper error code on fail
authorDenis Efremov <efremov@linux.com>
Fri, 10 Aug 2018 20:25:55 +0000 (23:25 +0300)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Aug 2018 23:58:56 +0000 (08:58 +0900)
commitfd878fc8c2cce3623e5c124ec82468d6f11e4227
treed4ab5068f95916e5493aaaaf546219a9001fe64a
parentf018c14e2c7c03c4841682a12f8957307bce655d
coccicheck: return proper error code on fail

If coccicheck fails, it should return an error code distinct from zero
to signal about an internal problem. Current code instead of exiting with
the tool's error code returns the error code of 'echo "coccicheck failed"'
which is almost always equals to zero, thus failing the original intention
of alerting about a problem. This patch fixes the code.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Denis Efremov <efremov@linux.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccicheck