[CRIU] [PATCH 13/23] 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 14 02:25:55 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 7bdbc3a..36d67e6 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -722,7 +722,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;
}
@@ -1837,8 +1837,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;
core_get_tls(tcore, &thread_args[i].tls);
if (tcore->thread_core) {
--
1.7.10.4
More information about the CRIU
mailing list