diff options
-rw-r--r-- | sys/scsi/scsi_base.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 6514b4c27a9..3714db90057 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.158 2010/01/13 02:46:19 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.159 2010/01/13 03:09:05 dlg Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -784,6 +784,9 @@ scsi_xs_sync(struct scsi_xfer *xs) struct mutex cookie = MUTEX_INITIALIZER(IPL_BIO); int error; + if (xs->done != NULL || xs->cookie != NULL) + panic("scsi_xs_sync: xs done or cookie is set!"); + /* * If we cant sleep while waiting for completion, get the adapter to * complete it for us. |