summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-31 10:22:36 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-31 10:22:36 +0000
commitda366a3728ccb9202e30de6fedd543ce5c1ec3c1 (patch)
tree0c3b2e52f71edc5d4aadd383ceeec546ea0c1bbe /sys/arch
parent36290fdef646ea6813257d810184e0884d5ade3f (diff)
Initialize b_dep if we malloc our own struct buf.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hp300/dev/sd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hp300/dev/sd.c b/sys/arch/hp300/dev/sd.c
index d4000fd797c..f9a29d42c37 100644
--- a/sys/arch/hp300/dev/sd.c
+++ b/sys/arch/hp300/dev/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.21 1998/10/04 01:02:25 millert Exp $ */
+/* $OpenBSD: sd.c,v 1.22 2001/05/31 10:22:35 art Exp $ */
/* $NetBSD: sd.c,v 1.34 1997/07/10 18:14:10 kleink Exp $ */
/*
@@ -324,6 +324,7 @@ sdgetcapacity(sc, dev)
bp->b_flags = B_READ | B_BUSY;
bp->b_un.b_addr = (caddr_t)capbuf;
bp->b_bcount = capbufsize;
+ LIST_INIT(&bp->b_dep);
sdstrategy(bp);
i = biowait(bp) ? sc->sc_sensestore.status : 0;
free(bp, M_DEVBUF);
@@ -641,6 +642,7 @@ sdlblkstrat(bp, bsize)
bzero((caddr_t)cbp, sizeof(*cbp));
cbp->b_proc = curproc; /* XXX */
cbp->b_dev = bp->b_dev;
+ LIST_INIT(&cbp->b_dep);
bn = bp->b_blkno;
resid = bp->b_bcount;
addr = bp->b_un.b_addr;