Message ID | 20110506081243.GF16782@ram-laptop (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 8e73abf..77e8454 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -157,8 +157,11 @@ static void adjust_resources_sorted(struct resource_list_x *add_head, if(pci_assign_resource(list->dev, idx)) reset_resource(res); } else if (add_size) { - adjust_resource(res, res->start, - resource_size(res) + add_size); + if (adjust_resource(res, res->start, + resource_size(res) + add_size) && + !resource_size(res)) { + reset_resource(res); + } } out: tmp = list;