[CRIU] [PATCH 1/4] files: Fix fle to be checked for being task_fle

Pavel Emelyanov xemul at virtuozzo.com
Tue Jan 24 23:53:49 PST 2017


We've received tmp, which is not expected one, so check for it.

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

diff --git a/criu/files.c b/criu/files.c
index 3869ab1..2cde4ad 100644
--- a/criu/files.c
+++ b/criu/files.c
@@ -907,8 +907,8 @@ again:
 
 	if (tmp != fle) {
 		pr_info("Further fle=%p, pid=%d\n", tmp, fle->pid);
-		if (!task_fle(current, fle)) {
-			pr_err("Unexpected fle %p, pid=%d\n", fle, current->pid.virt);
+		if (!task_fle(current, tmp)) {
+			pr_err("Unexpected fle %p, pid=%d\n", tmp, current->pid.virt);
 			return -1;
 		}
 		if (keep_fd_for_future(tmp, fd))
-- 
2.1.4



More information about the CRIU mailing list