diff options
author | 2001-05-31 10:21:01 +0000 | |
---|---|---|
committer | 2001-05-31 10:21:01 +0000 | |
commit | 8d67e2fb71aa521eb322cfc8f3d41a0d77924a5e (patch) | |
tree | 19240158991f049660b4f43c6471ffe6ce7564bf | |
parent | When opening the hints file, check for error return < 0, not -1. (diff) | |
download | wireguard-openbsd-8d67e2fb71aa521eb322cfc8f3d41a0d77924a5e.tar.xz wireguard-openbsd-8d67e2fb71aa521eb322cfc8f3d41a0d77924a5e.zip |
Initialize bp->b_dep if we malloc our own struct buf.
-rw-r--r-- | sys/arch/hp300/dev/ac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hp300/dev/ac.c b/sys/arch/hp300/dev/ac.c index 657ddc7a1c4..693444f5114 100644 --- a/sys/arch/hp300/dev/ac.c +++ b/sys/arch/hp300/dev/ac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ac.c,v 1.7 1997/04/20 07:01:11 downsj Exp $ */ +/* $OpenBSD: ac.c,v 1.8 2001/05/31 10:21:01 art Exp $ */ /* $NetBSD: ac.c,v 1.9 1997/04/02 22:37:21 scottr Exp $ */ /* @@ -330,6 +330,7 @@ accommand(dev, command, bufp, buflen) bp->b_resid = 0; bp->b_blkno = 0; bp->b_error = 0; + LIST_INIT(&bp->b_dep); if (scsireq(sc->sc_dev.dv_parent, &sc->sc_sq)) acstart(sc); error = biowait(bp); |