summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-24 21:01:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-08-24 21:01:36 +0000
commit10bd596184eeb6cc696d0eedd60bf61943f00177 (patch)
tree298147cddc74c79b8662670bfbe4d07da3c6b0c6
parentff99b3fcdd16dab6a43a6049133e257f239c6cf4 (diff)
some scsi xs transactions can come in without a buffer pointer obviously; tested by unpronounceable
-rw-r--r--sys/arch/vax/vsa/ncr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/ncr.c b/sys/arch/vax/vsa/ncr.c
index ee5e344cd50..e9532d3369e 100644
--- a/sys/arch/vax/vsa/ncr.c
+++ b/sys/arch/vax/vsa/ncr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncr.c,v 1.14 2004/07/07 23:10:46 deraadt Exp $ */
+/* $OpenBSD: ncr.c,v 1.15 2005/08/24 21:01:35 deraadt Exp $ */
/* $NetBSD: ncr.c,v 1.32 2000/06/25 16:00:43 ragge Exp $ */
/*-
@@ -324,7 +324,10 @@ found:
dh->dh_flags = SIDH_BUSY;
dh->dh_addr = ncr_sc->sc_dataptr;
dh->dh_len = xlen;
- dh->dh_proc = xs->bp->b_proc;
+ if (xs->bp)
+ dh->dh_proc = xs->bp->b_proc;
+ else
+ dh->dh_proc = NULL;
/* Remember dest buffer parameters */
if (xs->flags & SCSI_DATA_OUT)