mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
parasite: correct error code
Signed-off-by: Andrey Vagin <avagin@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
e6a52bdad1
commit
a00b90c041
@ -367,7 +367,7 @@ static int __used parasite_service(unsigned long cmd, void *args, void *brk)
|
|||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case PARASITE_CMD_PINGME:
|
case PARASITE_CMD_PINGME:
|
||||||
break;
|
return 0;
|
||||||
case PARASITE_CMD_DUMPPAGES:
|
case PARASITE_CMD_DUMPPAGES:
|
||||||
return dump_pages((struct parasite_dump_pages_args *)args);
|
return dump_pages((struct parasite_dump_pages_args *)args);
|
||||||
case PARASITE_CMD_DUMP_SIGACTS:
|
case PARASITE_CMD_DUMP_SIGACTS:
|
||||||
@ -381,7 +381,7 @@ static int __used parasite_service(unsigned long cmd, void *args, void *brk)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __parasite_head __used parasite_head(void)
|
static void __parasite_head __used parasite_head(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user