diff options
Diffstat (limited to 'src/devices/device.c')
-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 5f28c0d49e..96559c5833 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -203,6 +203,8 @@ static void find_largest_resource(struct pick_largest_state *state, struct device *curdev; for(curdev = bus->children; curdev; curdev = curdev->sibling) { int i; + /* Ignore disabled devices */ + if (!curdev->have_resources) continue; for(i = 0; i < curdev->resources; i++) { struct resource *resource = &curdev->resource[i]; /* If it isn't the right kind of resource ignore it */ |