Commit eadf6d4e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

parasite-syscall: Don't invert the sign of parasite return code

This sneaked during parasite error handling code rework.
When parasite returned negative error code we should not
invert it.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent eee14340
......@@ -225,7 +225,7 @@ static int parasite_execute_by_pid(unsigned int cmd, struct parasite_ctl *ctl, p
ret = __parasite_execute(ctl, pid, &regs);
if (ret == 0)
ret = -(int)regs.ax;
ret = (int)regs.ax;
if (ret)
pr_err("Parasite exited with %d\n", ret);
......
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