summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/device.c2
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;