diff options
author | Victor V. Vengerov <Victor.Vengerov@oktetlabs.ru> | 2006-05-01 23:15:53 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-02 05:17:43 +0400 |
commit | c39e50b4bada27102306d7fa68ea35dc4e61bd68 (patch) | |
tree | fc19963a4cdb94e964f83fb23c24f7d169241a43 /arch | |
parent | f3a19cb45f4730c4ce09ca9bccf197efd010dc3b (diff) | |
download | linux-c39e50b4bada27102306d7fa68ea35dc4e61bd68.tar.xz |
[PATCH] uml: fix iomem list traversal
We need to walk the region list properly.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/kernel/physmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index 0500800df1c1..fc0f0b085ca7 100644 --- a/arch/um/kernel/physmem.c +++ b/arch/um/kernel/physmem.c @@ -407,6 +407,8 @@ unsigned long find_iomem(char *driver, unsigned long *len_out) *len_out = region->size; return(region->virt); } + + region = region->next; } return(0); |