Commit 10635906 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Fix up error jump on fchmod failure

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent f1708959
......@@ -242,7 +242,7 @@ int parasite_dump_pages_seized(struct parasite_ctl *ctl, struct list_head *vma_a
goto err;
}
jerr(fchmod(cr_fdset->desc[fd_type].fd, CR_FD_PERM_DUMP), err);
jerr(fchmod(cr_fdset->desc[fd_type].fd, CR_FD_PERM_DUMP), chmod_err);
jerr(ptrace(PTRACE_GETREGS, ctl->pid, NULL, &regs_orig), err);
......@@ -386,8 +386,10 @@ err_restore:
if (ptrace(PTRACE_SETREGS, (long)ctl->pid, NULL, &regs_orig))
pr_panic("Can't restore registers (pid: %d)\n", ctl->pid);
jerr(fchmod(cr_fdset->desc[fd_type].fd, CR_FD_PERM), err);
err:
jerr(fchmod(cr_fdset->desc[fd_type].fd, CR_FD_PERM), chmod_err);
chmod_err:
pr_info("----------------------------------------\n");
return 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