From abeda21e8d1cca7d87a41d4881091a61374872f6 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sun, 13 May 2007 17:45:00 +0000 Subject: [PATCH] Temp workaround for config_intrhook_establish running the hook right away. --- sys/dev/isp/isp_freebsd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c index 8e5642f16373..89f45aa472b8 100644 --- a/sys/dev/isp/isp_freebsd.c +++ b/sys/dev/isp/isp_freebsd.c @@ -146,12 +146,15 @@ isp_attach(ispsoftc_t *isp) isp->isp_osinfo.ehook.ich_func = isp_intr_enable; isp->isp_osinfo.ehook.ich_arg = isp; + ISP_UNLOCK(isp); if (config_intrhook_establish(&isp->isp_osinfo.ehook) != 0) { + ISP_LOCK(isp); cam_sim_free(sim, TRUE); isp_prt(isp, ISP_LOGERR, "could not establish interrupt enable hook"); return; } + ISP_LOCK(isp); if (xpt_bus_register(sim, primary) != CAM_SUCCESS) { cam_sim_free(sim, TRUE);