diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-03-09 17:06:13 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-03-09 17:06:13 +0000 |
commit | 5a62c5f8de3e07458ea1e6655176916a250a2617 (patch) | |
tree | 20eaf5472f0682ecc23012e4ae954f9ed716dead | |
parent | 576da13a8515f183ffe1ce328a79b2791f273fdd (diff) |
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.c | 3 |
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); |