Commit befefb70 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

parasite: fix error code of parasite_get_proc_fd

ret contains a successful code of readlink
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 07283b37
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment