[CRIU] [PATCH 37/44] cr-restore.c: use the macro CORE_THREAD_INFO to access the machine-specific part of the struct CoreEntry.

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 7 10:05:06 EST 2013


Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 cr-restore.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 0a73a07..be6ab50 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -721,7 +721,7 @@ static int check_core(CoreEntry *core)
 			goto out;
 		}
 
-		if (!core->thread_info) {
+		if (!CORE_THREAD_INFO(core)) {
 			pr_err("Core info data missed for non-zombie\n");
 			goto out;
 		}
@@ -1894,8 +1894,8 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
 		}
 
 		thread_args[i].ta		= task_args;
-		thread_args[i].gpregs		= *tcore->thread_info->gpregs;
-		thread_args[i].clear_tid_addr	= tcore->thread_info->clear_tid_addr;
+		thread_args[i].gpregs		= *CORE_THREAD_INFO(tcore)->gpregs;
+		thread_args[i].clear_tid_addr	= CORE_THREAD_INFO(tcore)->clear_tid_addr;
 
 		if (tcore->thread_core) {
 			thread_args[i].has_futex	= true;
-- 
1.7.10.4



More information about the CRIU mailing list