[CRIU] [PATCH] dump: No need to re-assign cr_fdset_open result if preallocated fdset passed

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 1 03:00:45 EST 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index 8a0e147..e2ae80c 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1132,8 +1132,7 @@ static int dump_one_zombie(struct pstree_item *item, struct proc_pid_stat *pps,
 		return -1;
 	}
 
-	cr_fdset = cr_fdset_open(item->pid, CR_FD_DESC_CORE, cr_fdset);
-	if (cr_fdset == NULL)
+	if (!cr_fdset_open(item->pid, CR_FD_DESC_CORE, cr_fdset))
 		return -1;
 
 	core = xzalloc(sizeof(*core));
-- 
1.7.7.6



More information about the CRIU mailing list