summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-02-19 19:40:40 +0000
committerjake <jake@FreeBSD.org>2003-02-19 19:40:40 +0000
commite3b25e1b75058f3a2769ff1c97911d50ae396d80 (patch)
treeaeb299f65324a05ff9ea5950100fb0df87c84eab /sys/sparc64/fhc/fhc.c
parent1fe37e43e300d53b7f91e99c64116556ef9187cd (diff)
downloadFreeBSD-src-e3b25e1b75058f3a2769ff1c97911d50ae396d80.zip
FreeBSD-src-e3b25e1b75058f3a2769ff1c97911d50ae396d80.tar.gz
Fix definite panic when releasing interrupt resources.
Spotted by: tmm
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
-rw-r--r--sys/sparc64/fhc/fhc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 15d3880..4b358e3 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);
OpenPOWER on IntegriCloud