Deleted Added
full compact
35c35
< __FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 114195 2003-04-29 05:47:14Z imp $");
---
> __FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 114269 2003-04-30 01:54:38Z imp $");
884c884
< sc->gone = 1;
---
> sc->suspend = 1; /* Do same thing as we do for suspend */
1502c1502,1504
< if (sc->gone)
---
> FXP_LOCK(sc);
> if (sc->suspended) {
> FXP_UNLOCK(sc);
1503a1506
> }
1505d1507
< FXP_LOCK(sc);
1519,1524d1520
<
< if (sc->suspended) {
< FXP_UNLOCK(sc);
< return;
< }
<
2365,2366c2361,2366
< if (sc->gone)
< return (ENODEV);
---
> /*
> * Detaching causes us to call ioctl with the mutex owned. Preclude
> * that by saying we're busy if the lock is already held.
> */
> if (mtx_owned(&sc->sc_mtx))
> return (EBUSY);