[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>
This commit is contained in:
parent
f3a19cb45f
commit
c39e50b4ba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue