aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2006-07-14 13:58:32 +0000
committerXin LI <delphij@FreeBSD.org>2006-07-14 13:58:32 +0000
commit232e7000f51022bcbb7da8a15fd1fcd5ee7aa72d (patch)
treee44d53c3730de5178f3b58c518d55193fa5e1de9 /sys
parentcf82f20057b19a26ba81f5f364aaba1732b5e003 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/scsi/scsi_cd.c1
-rw-r--r--sys/cam/scsi/scsi_da.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index 8795fc52b934..a64d93e41743 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -591,6 +591,7 @@ cdsysctlinit(void *context, int pending)
if (softc->sysctl_tree == NULL) {
printf("cdsysctlinit: unable to allocate sysctl tree\n");
+ mtx_unlock(&Giant);
return;
}
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index bc16d8be8985..c09740967c23 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1001,6 +1001,7 @@ dasysctlinit(void *context, int pending)
CTLFLAG_RD, 0, tmpstr);
if (softc->sysctl_tree == NULL) {
printf("dasysctlinit: unable to allocate sysctl tree\n");
+ mtx_unlock(&Giant);
return;
}