summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/physmem.c
diff options
context:
space:
mode:
authorVictor V. Vengerov <Victor.Vengerov@oktetlabs.ru>2006-05-01 12:15:53 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-01 18:17:43 -0700
commitc39e50b4bada27102306d7fa68ea35dc4e61bd68 (patch)
treefc19963a4cdb94e964f83fb23c24f7d169241a43 /arch/um/kernel/physmem.c
parentf3a19cb45f4730c4ce09ca9bccf197efd010dc3b (diff)
downloadlinux-c39e50b4bada27102306d7fa68ea35dc4e61bd68.tar.bz2
[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/um/kernel/physmem.c')
-rw-r--r--arch/um/kernel/physmem.c2
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);