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@coresystems.de Acked-by: Myles Watson mylesgw@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;