[1/7] pre-dump: Don't use ctl->pid

Submitted by Pavel Emelianov on Sept. 28, 2016, 7:41 a.m.

Details

Message ID 57EB7421.1080007@virtuozzo.com
State Accepted
Series "Prepare parasite_ctl for being internal to compel"
Commit 2b910b01c2ecf854f32cddd68bc53c157c2af9ae
Headers show

Commit Message

Pavel Emelianov Sept. 28, 2016, 7:41 a.m.
We have pstree_item there.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/cr-dump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index 660ba43..2b4e680 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -1470,9 +1470,9 @@  static int cr_pre_dump_finish(int ret)
 		if (!ctl)
 			continue;
 
-		pr_info("\tPre-dumping %d\n", ctl->pid.virt);
+		pr_info("\tPre-dumping %d\n", item->pid.virt);
 		timing_start(TIME_MEMWRITE);
-		ret = open_page_xfer(&xfer, CR_FD_PAGEMAP, ctl->pid.virt);
+		ret = open_page_xfer(&xfer, CR_FD_PAGEMAP, item->pid.virt);
 		if (ret < 0)
 			goto err;