From 2e87863b0449adbce4a754c613d9816d4c4065bf Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 11 Jul 2003 20:49:36 +0000 Subject: Unlock the fxp driver lock before calling fxp_poll() to avoid recursing on the lock when using DEVICE_POLLING. Tested by: Robin P. Blanchard Reviewed by: njl --- sys/dev/fxp/if_fxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/fxp') diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 3026662..b894b37 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -1550,8 +1550,8 @@ fxp_intr(void *xsc) if (ether_poll_register(fxp_poll, ifp)) { /* disable interrupts */ CSR_WRITE_1(sc, FXP_CSR_SCB_INTRCNTL, FXP_SCB_INTR_DISABLE); - fxp_poll(ifp, 0, 1); FXP_UNLOCK(sc); + fxp_poll(ifp, 0, 1); return; } #endif -- cgit v1.1