From: Victor V. Vengerov Date: Mon, 1 May 2006 19:15:53 +0000 (-0700) Subject: [PATCH] uml: fix iomem list traversal X-Git-Tag: v2.6.17-rc4~89 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c39e50b4bada27102306d7fa68ea35dc4e61bd68;p=linux-2.6 [PATCH] uml: fix iomem list traversal We need to walk the region list properly. Signed-off-by: Jeff Dike Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c index 0500800df1..fc0f0b085c 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);