mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
Unlock the fxp driver lock before calling fxp_poll() to avoid recursing on
the lock when using DEVICE_POLLING. Tested by: Robin P. Blanchard <Robin.Blanchard@gactr.uga.edu> Reviewed by: njl
This commit is contained in:
parent
00041cf539
commit
c660bdfa66
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117454
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue