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

crtools: Kill constant arg from parasite_infect_seized

The mmap hint is always NULL.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 73633d55
...@@ -1112,7 +1112,7 @@ static int dump_one_task(pid_t pid, struct cr_fdset *cr_fdset) ...@@ -1112,7 +1112,7 @@ static int dump_one_task(pid_t pid, struct cr_fdset *cr_fdset)
goto err; goto err;
} }
parasite_ctl = parasite_infect_seized(pid, NULL, &vma_area_list); parasite_ctl = parasite_infect_seized(pid, &vma_area_list);
if (!parasite_ctl) { if (!parasite_ctl) {
pr_err("Can't infect (pid: %d) with parasite\n", pid); pr_err("Can't infect (pid: %d) with parasite\n", pid);
goto err; goto err;
......
...@@ -40,7 +40,7 @@ extern int parasite_dump_pages_seized(struct parasite_ctl *ctl, struct list_head ...@@ -40,7 +40,7 @@ extern int parasite_dump_pages_seized(struct parasite_ctl *ctl, struct list_head
struct cr_fdset *cr_fdset); struct cr_fdset *cr_fdset);
extern int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_fdset); extern int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_fdset);
extern struct parasite_ctl *parasite_infect_seized(pid_t pid, void *addr_hint, struct list_head *vma_area_list); extern struct parasite_ctl *parasite_infect_seized(pid_t pid, struct list_head *vma_area_list);
extern int parasite_cure_seized(struct parasite_ctl **p_ctrl, struct list_head *vma_area_list); extern int parasite_cure_seized(struct parasite_ctl **p_ctrl, struct list_head *vma_area_list);
#endif /* PARASITE_SYSCALL_H_ */ #endif /* PARASITE_SYSCALL_H_ */
...@@ -542,7 +542,7 @@ err: ...@@ -542,7 +542,7 @@ err:
return ret; return ret;
} }
struct parasite_ctl *parasite_infect_seized(pid_t pid, void *addr_hint, struct list_head *vma_area_list) struct parasite_ctl *parasite_infect_seized(pid_t pid, struct list_head *vma_area_list)
{ {
user_regs_struct_t regs, regs_orig; user_regs_struct_t regs, regs_orig;
struct parasite_ctl *ctl = NULL; struct parasite_ctl *ctl = NULL;
...@@ -579,7 +579,7 @@ struct parasite_ctl *parasite_infect_seized(pid_t pid, void *addr_hint, struct l ...@@ -579,7 +579,7 @@ struct parasite_ctl *parasite_infect_seized(pid_t pid, void *addr_hint, struct l
regs.ip = vma_area->vma.start; regs.ip = vma_area->vma.start;
mmaped = mmap_seized(pid, &regs, addr_hint, (size_t)parasite_size, mmaped = mmap_seized(pid, &regs, NULL, (size_t)parasite_size,
(int)ctl->vma_area->vma.prot, (int)ctl->vma_area->vma.prot,
(int)ctl->vma_area->vma.flags, (int)ctl->vma_area->vma.flags,
(int)-1, (off_t)0); (int)-1, (off_t)0);
......
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