From 367a0516d891322a4dfd562b728fee946abe7f2d Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Wed, 19 Feb 2003 19:40:40 +0000 Subject: [PATCH] Fix definite panic when releasing interrupt resources. Spotted by: tmm --- sys/sparc64/fhc/fhc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c index 15d3880420a8..4b358e3ac45a 100644 --- a/sys/sparc64/fhc/fhc.c +++ b/sys/sparc64/fhc/fhc.c @@ -361,7 +361,7 @@ fhc_release_resource(device_t bus, device_t child, int type, int rid, int error; error = bus_generic_release_resource(bus, child, type, rid, r); - if (error != 0) + if (type != SYS_RES_MEMORY || error != 0) return (error); fdi = device_get_ivars(child); rle = resource_list_find(&fdi->fdi_rl, type, rid);