Commit 1d186022 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Remove excessive arg from open_vmas()

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 87fe1834
...@@ -458,12 +458,12 @@ out: ...@@ -458,12 +458,12 @@ out:
return ret; return ret;
} }
static int open_vmas(int pid, struct list_head *vmas) static int open_vmas(int pid)
{ {
struct vma_area *vma; struct vma_area *vma;
int ret = 0; int ret = 0;
list_for_each_entry(vma, vmas, list) { list_for_each_entry(vma, &rst_vma_list, list) {
if (!(vma_entry_is(&vma->vma, VMA_AREA_REGULAR))) if (!(vma_entry_is(&vma->vma, VMA_AREA_REGULAR)))
continue; continue;
...@@ -599,7 +599,7 @@ static int restore_one_alive_task(int pid, CoreEntry *core) ...@@ -599,7 +599,7 @@ static int restore_one_alive_task(int pid, CoreEntry *core)
log_closedir(); log_closedir();
if (open_vmas(pid, &rst_vma_list)) if (open_vmas(pid))
return -1; return -1;
return sigreturn_restore(pid, core); return sigreturn_restore(pid, core);
......
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