diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-08-19 17:29:41 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-08-19 17:29:41 +0000 |
commit | 6bd93f4753a32c097f0cb0d6245969b7fd643e49 (patch) | |
tree | 2c7f11a7c92f8338fc499c4f88cb803ebe1cc626 /src/devices | |
parent | d26053a10f36d27262324d4176fd14cfce4dffed (diff) | |
download | coreboot-6bd93f4753a32c097f0cb0d6245969b7fd643e49.tar.xz |
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>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4556 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/device.c b/src/devices/device.c index 8663a543ac..c0852f2fd3 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -556,6 +556,8 @@ static void constrain_resources(struct device *dev, struct constraints* limits) /* 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; |