diff options
| author | Paul Saab <ps@FreeBSD.org> | 2004-04-14 19:45:07 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2004-04-14 19:45:07 +0000 |
| commit | ffdf82e1a73fa4f679a44b961f1134602bb898aa (patch) | |
| tree | 982b8bdeb2dc03d5bc8c385e553e147c113943dd /sys | |
| parent | d8a0a47347a6862a85fc063a4cc77ac11ea02591 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/ciss/ciss.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 0988b3415d4b2..367d3ceccba39 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -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); |
