Explorar o código

[PATCH] output of /proc/maps on nommu systems is incomplete

Currently you do not get all the map entries on nommu systems because the
start function doesn't index into the list using the value of "pos".

Signed-off-by: David McCullough <davidm@snapgear.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
David McCullough %!s(int64=19) %!d(string=hai) anos
pai
achega
b65574fec5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      fs/proc/nommu.c

+ 1 - 0
fs/proc/nommu.c

@@ -91,6 +91,7 @@ static void *nommu_vma_list_start(struct seq_file *m, loff_t *_pos)
 			next = _rb;
 			break;
 		}
+		pos--;
 	}
 
 	return next;