[CRIU] [crtools-bot] parasite: correct error code
Cyrill Gorcunov
gorcunov at openvz.org
Mon Jan 30 07:02:47 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit a00b90c0410e77c58f6f29264bf6d6ca45a2eabd
Author: Andrey Vagin <avagin at openvz.org>
Date: Mon Jan 30 14:35:16 2012 +0300
parasite: correct error code
Signed-off-by: Andrey Vagin <avagin at openvz.org>
Acked-by: Pavel Emelyanov <xemul at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
parasite.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/parasite.c b/parasite.c
index b450e21..b2bbba6 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)
More information about the CRIU
mailing list