From 3d6d9df323c775b9c50d3dabc184bd62752d23b5 Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Tue, 2 Apr 2002 17:23:45 +0000 Subject: [PATCH] Remove a debugging panic that was triggered when a resource that was out of range was tried to be allocated; just return failure instead. --- sys/sparc64/isa/isa.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/sparc64/isa/isa.c b/sys/sparc64/isa/isa.c index 37fa3d492488..0536db7b206f 100644 --- a/sys/sparc64/isa/isa.c +++ b/sys/sparc64/isa/isa.c @@ -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);