diff options
author | jake <jake@FreeBSD.org> | 2003-02-19 19:40:40 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-02-19 19:40:40 +0000 |
commit | e3b25e1b75058f3a2769ff1c97911d50ae396d80 (patch) | |
tree | aeb299f65324a05ff9ea5950100fb0df87c84eab /sys/sparc64/fhc/fhc.c | |
parent | 1fe37e43e300d53b7f91e99c64116556ef9187cd (diff) | |
download | FreeBSD-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.c | 2 |
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); |