summaryrefslogtreecommitdiff
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2003-02-20 23:13:48 +0000
committerScott Long <scottl@FreeBSD.org>2003-02-20 23:13:48 +0000
commit65ac4ed65e51c1ec707451f13bf93e7ab3d6d204 (patch)
tree5949424010ca01efdbc59a62e5f1d35f9f4a9add /sys/dev/aac
parentc7cf7aa6841c2f217ff154b1509b2cae14334645 (diff)
Notes
Diffstat (limited to 'sys/dev/aac')
-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 63529fbc002d..aad1dcb435e4 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);
}