public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David McCullough <davidm@snapgear.com>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Cc: dhowells@redhat.com
Subject: [PATCH] 2.6.13 - output of /proc/maps on nommu systems is incomplete
Date: Thu, 6 Oct 2005 14:40:15 +1000	[thread overview]
Message-ID: <20051006044015.GA31458@beast> (raw)


Hi all,

Simple patch against 2.6.13 for /proc/maps on nommu systems.
Currently you do not get all the map entries because the start
function doesn't index into the list using the value of "pos".

Cheers,
Davidm

Signed-off-by: David McCullough <davidm@snapgear.com>

Index: fs/proc/nommu.c
===================================================================
RCS file: /cvs/sw/linux-2.6.x/fs/proc/nommu.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 nommu.c
--- fs/proc/nommu.c	3 Mar 2005 00:45:41 -0000	1.1.1.1
+++ fs/proc/nommu.c	6 Oct 2005 04:25:30 -0000
@@ -91,6 +91,7 @@ static void *nommu_vma_list_start(struct
 			next = _rb;
 			break;
 		}
+		pos--;
 	}
 
 	return next;
-- 
David McCullough, davidm@cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com

             reply	other threads:[~2005-10-06  4:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-06  4:40 David McCullough [this message]
2005-10-06 10:36 ` [PATCH] 2.6.13 - output of /proc/maps on nommu systems is incomplete David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051006044015.GA31458@beast \
    --to=davidm@snapgear.com \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox