[CRIU] [PATCH 1/8] parasite: fix error code of parasite_get_proc_fd
Andrey Vagin
avagin at openvz.org
Fri Jun 14 07:04:52 EDT 2013
ret contains a successful code of readlink
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
pie/parasite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pie/parasite.c b/pie/parasite.c
index 6a02b9f..83d85e4 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -262,7 +262,7 @@ static int parasite_get_proc_fd()
if (sys_mkdir(proc_mountpoint, 0700)) {
pr_err("Can't create a directory\n");
- return ret;
+ return -1;
}
if (sys_mount("proc", proc_mountpoint, "proc", MS_MGC_VAL, NULL)) {
--
1.8.2
More information about the CRIU
mailing list