aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-02-19 19:40:40 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-02-19 19:40:40 +0000
commit367a0516d891322a4dfd562b728fee946abe7f2d (patch)
treeaeb299f65324a05ff9ea5950100fb0df87c84eab /sys/sparc64/fhc/fhc.c
parent5e303db539eead56a1cfc3072e5dd8f5e6c73d95 (diff)
downloadsrc-367a0516d891322a4dfd562b728fee946abe7f2d.tar.gz
src-367a0516d891322a4dfd562b728fee946abe7f2d.zip
Fix definite panic when releasing interrupt resources.
Spotted by: tmm
Notes
Notes: svn path=/head/; revision=111137
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 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);