diff options
author | scottl <scottl@FreeBSD.org> | 2003-02-20 23:13:48 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-02-20 23:13:48 +0000 |
commit | 0cf9890aec9b5a86b0649ef8706a3402793dc8d9 (patch) | |
tree | 5949424010ca01efdbc59a62e5f1d35f9f4a9add /sys/dev/aac/aac.c | |
parent | b8e76084ebcdc74f8d2e595baaf6fcff8f80d3e0 (diff) | |
download | FreeBSD-src-0cf9890aec9b5a86b0649ef8706a3402793dc8d9.zip FreeBSD-src-0cf9890aec9b5a86b0649ef8706a3402793dc8d9.tar.gz |
On detach, don't remove the child from our list of children unless it has
successfully detached.
Diffstat (limited to 'sys/dev/aac/aac.c')
-rw-r--r-- | sys/dev/aac/aac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 63529fbc..aad1dcb 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -489,10 +489,10 @@ aac_detach(device_t dev) /* Remove the child containers */ while ((co = TAILQ_FIRST(&sc->aac_container_tqh)) != NULL) { - TAILQ_REMOVE(&sc->aac_container_tqh, co, co_link); error = device_delete_child(dev, co->co_disk); if (error) return (error); + TAILQ_REMOVE(&sc->aac_container_tqh, co, co_link); free(co, M_AACBUF); } |