Commit 5e95df84 authored by Pavel Emelyanov's avatar Pavel Emelyanov

parasite: Report negative value from parasite_execure

The value in eax is positive on error. Callers expect it to
be negative to report error.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent dffe544f
...@@ -246,7 +246,7 @@ static int parasite_execute_by_pid(unsigned long cmd, struct parasite_ctl *ctl, ...@@ -246,7 +246,7 @@ static int parasite_execute_by_pid(unsigned long cmd, struct parasite_ctl *ctl,
ret = __parasite_execute(ctl, pid, &regs); ret = __parasite_execute(ctl, pid, &regs);
if (ret == 0) if (ret == 0)
ret = (int)regs.ax; ret = -(int)regs.ax;
if (args) if (args)
memcpy(args, ctl->addr_args, args_size); memcpy(args, ctl->addr_args, args_size);
......
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