[CRIU] [crtools-bot for Cyrill Gorcunov ] cr-restore: Fix typo in restorer_get_vma_hint

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 2 14:21:51 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 351537c4f4a28ed54d9dbb8eee2d2f54f8c309e5
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Fri Mar 2 23:21:51 2012 +0400

    cr-restore: Fix typo in restorer_get_vma_hint
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index e70c509..720f23f 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1520,8 +1520,8 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *self_vma_list, lo
 					continue;
 				}
 
-				if ((prev_vma_end2 >= prev_vma_end2) &&
-						(vma_area->vma.start - prev_vma_end2) > vma_len) {
+				if ((prev_vma_end2 >= prev_vma_end) &&
+				    (vma_area->vma.start - prev_vma_end2) > vma_len) {
 					hint = prev_vma_end2;
 					goto found;
 				}


More information about the CRIU mailing list