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
This commit is contained in:
parent
d26053a10f
commit
6bd93f4753
|
@ -556,6 +556,8 @@ static void constrain_resources(struct device *dev, struct constraints* limits)
|
||||||
/* Constrain limits based on the fixed resources of this device. */
|
/* Constrain limits based on the fixed resources of this device. */
|
||||||
for (i = 0; i < dev->resources; i++) {
|
for (i = 0; i < dev->resources; i++) {
|
||||||
res = &dev->resource[i];
|
res = &dev->resource[i];
|
||||||
|
if (!res->size)
|
||||||
|
continue;
|
||||||
if (!(res->flags & IORESOURCE_FIXED))
|
if (!(res->flags & IORESOURCE_FIXED))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue