From c660bdfa66a19695ce70c1208f247d49b647c6a6 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 11 Jul 2003 20:49:36 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 302666267f65..b894b375e5c4 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