summaryrefslogtreecommitdiff
path: root/fs/proc/nommu.c
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2005-10-17 16:43:29 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-17 17:03:57 -0700
commitb65574fec5db1211bce7fc8bec7a2b32486e0670 (patch)
treeeed63a503028c04db304c37969fa0c54e8c28dda /fs/proc/nommu.c
parent5ee832dbc6770135ec8d63296af0a4374557bb79 (diff)
[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>
Diffstat (limited to 'fs/proc/nommu.c')
-rw-r--r--fs/proc/nommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/nommu.c b/fs/proc/nommu.c
index f3bf016d5ee3..cff10ab1af63 100644
--- a/fs/proc/nommu.c
+++ b/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;