Don't allow the driver to be unloaded if the device node is open.
This commit is contained in:
parent
d8a0a47347
commit
ffdf82e1a7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user