From 5a62c5f8de3e07458ea1e6655176916a250a2617 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 9 Mar 2001 17:06:13 +0000 Subject: 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 --- sys/dev/ic/twe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') 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); -- cgit v1.2.3