[coreboot] [v2] r4556 - trunk/coreboot-v2/src/devices

svn at coreboot.org svn at coreboot.org
Wed Aug 19 19:29:41 CEST 2009


Author: oxygene
Date: 2009-08-19 19:29:41 +0200 (Wed, 19 Aug 2009)
New Revision: 4556

Modified:
   trunk/coreboot-v2/src/devices/device.c
Log:
Don't let zero sized fixed resource mess up the allocator's memory map.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Myles Watson <mylesgw at gmail.com>


Modified: trunk/coreboot-v2/src/devices/device.c
===================================================================
--- trunk/coreboot-v2/src/devices/device.c	2009-08-19 14:08:42 UTC (rev 4555)
+++ trunk/coreboot-v2/src/devices/device.c	2009-08-19 17:29:41 UTC (rev 4556)
@@ -556,6 +556,8 @@
 	/* Constrain limits based on the fixed resources of this device. */
 	for (i = 0; i < dev->resources; i++) {
 		res = &dev->resource[i];
+		if (!res->size)
+			continue;
 		if (!(res->flags & IORESOURCE_FIXED))
 			continue;
 





More information about the coreboot mailing list