summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ahci/ahci.c1
-rw-r--r--sys/dev/siis/siis.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c
index d6357b2..314bd91 100644
--- a/sys/dev/ahci/ahci.c
+++ b/sys/dev/ahci/ahci.c
@@ -969,6 +969,7 @@ err1:
err0:
bus_release_resource(dev, SYS_RES_MEMORY, ch->unit, ch->r_mem);
mtx_unlock(&ch->mtx);
+ mtx_destroy(&ch->mtx);
return (error);
}
diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c
index 0aef775..ba10c92 100644
--- a/sys/dev/siis/siis.c
+++ b/sys/dev/siis/siis.c
@@ -527,6 +527,7 @@ err1:
err0:
bus_release_resource(dev, SYS_RES_MEMORY, ch->unit, ch->r_mem);
mtx_unlock(&ch->mtx);
+ mtx_destroy(&ch->mtx);
return (error);
}
OpenPOWER on IntegriCloud