Don't allow the driver to be unloaded if the device node is open.

This commit is contained in:
Paul Saab 2004-04-14 19:45:07 +00:00
parent d8a0a47347
commit ffdf82e1a7

View File

@ -428,7 +428,10 @@ ciss_detach(device_t dev)
struct ciss_softc *sc = device_get_softc(dev);
debug_called(1);
if (sc->ciss_flags & CISS_FLAG_CONTROL_OPEN)
return (EBUSY);
/* flush adapter cache */
ciss_flush_adapter(sc);