Files
linux/scripts
Denis Efremov 6d39ab3401 coccicheck: return proper error code on fail
[ Upstream commit 512ddf7d7d ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-15 09:46:50 +02:00
..
2017-03-28 16:16:52 +02:00
2012-06-27 12:44:29 -07:00
2018-02-06 18:32:47 -08:00
2018-04-27 16:45:49 -06:00
2014-08-20 16:03:45 +02:00