Don't allow the driver to be unloaded if the device node is open.
This commit is contained in:
parent
d8a0a47347
commit
ffdf82e1a7
@ -429,6 +429,9 @@ ciss_detach(device_t 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