Don't panic if a resource is allocated twice. Instead, print a warning and
fail the allocation request. Allocations of "reserved" resources such as PCI BARs already fail the request instead of panic'ing in this case. MFC after: 1 week
This commit is contained in:
parent
d7771b5006
commit
c1d67516d9
@ -3302,7 +3302,10 @@ resource_list_alloc(struct resource_list *rl, device_t bus, device_t child,
|
||||
rle->flags |= RLE_ALLOCATED;
|
||||
return (rle->res);
|
||||
}
|
||||
panic("resource_list_alloc: resource entry is busy");
|
||||
device_printf(bus,
|
||||
"resource entry %#x type %d for child %s is busy\n", *rid,
|
||||
type, device_get_nameunit(child));
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
if (isdefault) {
|
||||
|
Loading…
Reference in New Issue
Block a user