From: David McCullough Date: Mon, 17 Oct 2005 23:43:29 +0000 (-0700) Subject: [PATCH] output of /proc/maps on nommu systems is incomplete X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b65574fec5db1211bce7fc8bec7a2b32486e0670;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;