summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-03-09 17:06:12 +0000
committermickey <mickey@openbsd.org>2001-03-09 17:06:12 +0000
commit55280d1be8ecd80e7d4111ba1a5bd8dd93cc57d7 (patch)
treec1439480a0e7df0f04cec651fb8aed44c0b0795f
parentAdd a missing newline in debug mode to separate debug output from (diff)
downloadwireguard-openbsd-55280d1be8ecd80e7d4111ba1a5bd8dd93cc57d7.tar.xz
wireguard-openbsd-55280d1be8ecd80e7d4111ba1a5bd8dd93cc57d7.zip
missing twe_unlock for failed get_ccb() for i/o scsi cmd, which was impossible to trigger in twese case because of how maxcmds is calculated
-rw-r--r--sys/dev/ic/twe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/twe.c b/sys/dev/ic/twe.c
index 1deb14db3d6..5ad89cfa9f0 100644
--- a/sys/dev/ic/twe.c
+++ b/sys/dev/ic/twe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: twe.c,v 1.7 2001/02/19 20:47:02 mickey Exp $ */
+/* $OpenBSD: twe.c,v 1.8 2001/03/09 17:06:12 mickey Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff. All rights reserved.
@@ -833,6 +833,7 @@ twe_scsi_cmd(xs)
}
if ((ccb = twe_get_ccb(sc)) == NULL) {
+ TWE_UNLOCK_TWE(sc, lock);
xs->error = XS_DRIVER_STUFFUP;
scsi_done(xs);
return (COMPLETE);