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:
Thomas Moestl 2002-04-02 17:23:45 +00:00
parent 80cc42da6b
commit 3d6d9df323
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93681

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);