From a00b90c0410e77c58f6f29264bf6d6ca45a2eabd Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Mon, 30 Jan 2012 14:35:16 +0300 Subject: [PATCH] parasite: correct error code Signed-off-by: Andrey Vagin Acked-by: Pavel Emelyanov Signed-off-by: Cyrill Gorcunov --- parasite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parasite.c b/parasite.c index b450e21e3..b2bbba6d9 100644 --- a/parasite.c +++ b/parasite.c @@ -367,7 +367,7 @@ static int __used parasite_service(unsigned long cmd, void *args, void *brk) switch (cmd) { case PARASITE_CMD_PINGME: - break; + return 0; case PARASITE_CMD_DUMPPAGES: return dump_pages((struct parasite_dump_pages_args *)args); case PARASITE_CMD_DUMP_SIGACTS: @@ -381,7 +381,7 @@ static int __used parasite_service(unsigned long cmd, void *args, void *brk) break; } - return 0; + return -1; } static void __parasite_head __used parasite_head(void)