mm/mmap.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---- a/mm/mmap.c
-+++ b/mm/mmap.c
-@@ -1813,7 +1813,8 @@ check_current:
+Index: usextract/mm/mmap.c
+===================================================================
+--- usextract.orig/mm/mmap.c
++++ usextract/mm/mmap.c
+@@ -1799,7 +1799,8 @@ check_current:
/* Check if current node has a suitable gap */
if (gap_start > high_limit)
return -ENOMEM;
goto found;
/* Visit right subtree if it looks promising */
-@@ -1916,7 +1917,8 @@ check_current:
- gap_end = vm_start_gap(vma);
+@@ -1902,7 +1903,8 @@ check_current:
+ gap_end = vma->vm_start;
if (gap_end < low_limit)
return -ENOMEM;
- if (gap_start <= high_limit && gap_end - gap_start >= length)