Commit 69db54d8 authored by Pavel Emelyanov's avatar Pavel Emelyanov

parasite: Fix regs restore message pid

We work on pid, not ctl->pid in that place.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 64249d5a
...@@ -223,7 +223,7 @@ static int parasite_execute_by_pid(unsigned int cmd, struct parasite_ctl *ctl, p ...@@ -223,7 +223,7 @@ static int parasite_execute_by_pid(unsigned int cmd, struct parasite_ctl *ctl, p
if (ctl->pid != pid) if (ctl->pid != pid)
if (ptrace(PTRACE_SETREGS, pid, NULL, &regs_orig)) { if (ptrace(PTRACE_SETREGS, pid, NULL, &regs_orig)) {
pr_perror("Can't restore registers (pid: %d)", ctl->pid); pr_perror("Can't restore registers (pid: %d)", pid);
return -1; return -1;
} }
......
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