Remove a debugging panic that was triggered when a resource that was out

of range was tried to be allocated; just return failure instead.
This commit is contained in:
tmm 2002-04-02 17:23:45 +00:00
parent 85f5ae7a3b
commit 2d73e08660

View File

@ -283,11 +283,8 @@ isa_alloc_resource(device_t bus, device_t child, int type, int *rid,
start += base;
end += base;
if (!INRANGE(start, base, limit) ||
!INRANGE(end, base, limit)) {
panic("isa_alloc_resource: resource list entry "
"out of bus range (0x%lx - 0x%lx not in "
"0x%lx - 0x%lx)", start, end, base, limit);
}
!INRANGE(end, base, limit))
return (NULL);
break;
case SYS_RES_IRQ:
start = end = isa_route_intr_res(bus, start, end);