Skip to content

Commit

Permalink
[PATCH] uml: fix iomem list traversal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Victor V. Vengerov authored and Linus Torvalds committed May 2, 2006
1 parent f3a19cb commit c39e50b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/um/kernel/physmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c39e50b

Please sign in to comment.