diff options
author | Victor V. Vengerov <Victor.Vengerov@oktetlabs.ru> | 2006-05-01 21:15:53 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-02 03:17:43 +0200 |
commit | c39e50b4bada27102306d7fa68ea35dc4e61bd68 (patch) | |
tree | fc19963a4cdb94e964f83fb23c24f7d169241a43 /arch/um | |
parent | [PATCH] silence initcall warnings (diff) | |
download | linux-c39e50b4bada27102306d7fa68ea35dc4e61bd68.tar.xz linux-c39e50b4bada27102306d7fa68ea35dc4e61bd68.zip |
[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')
-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); |