summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac/aac.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-02-20 23:13:48 +0000
committerscottl <scottl@FreeBSD.org>2003-02-20 23:13:48 +0000
commit0cf9890aec9b5a86b0649ef8706a3402793dc8d9 (patch)
tree5949424010ca01efdbc59a62e5f1d35f9f4a9add /sys/dev/aac/aac.c
parentb8e76084ebcdc74f8d2e595baaf6fcff8f80d3e0 (diff)
downloadFreeBSD-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.c2
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);
}
OpenPOWER on IntegriCloud