]> err.no Git - linux-2.6/commitdiff
[PATCH] uml: fix iomem list traversal
authorVictor V. Vengerov <Victor.Vengerov@oktetlabs.ru>
Mon, 1 May 2006 19:15:53 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:43 +0000 (18:17 -0700)
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>
arch/um/kernel/physmem.c

index 0500800df1c130f4c239282f8c624a26ac63d355..fc0f0b085ca78ffb8416c48cf9a1b23ea283dfaa 100644 (file)
@@ -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);