[PATCH 1/6] UML - Fix iomem list traversal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Victor V. Vengerov" <[email protected]>

We need to walk the region list properly.

Signed-off-by: Jeff Dike <[email protected]>

Index: linux-2.6.16/arch/um/kernel/physmem.c
===================================================================
--- linux-2.6.16.orig/arch/um/kernel/physmem.c	2006-04-03 08:48:13.000000000 -0400
+++ linux-2.6.16/arch/um/kernel/physmem.c	2006-04-05 11:16:38.000000000 -0400
@@ -407,6 +407,8 @@ unsigned long find_iomem(char *driver, u
 			*len_out = region->size;
 			return(region->virt);
 		}
+
+		region = region->next;
 	}
 
 	return(0);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux