Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/hp300/dev Pull up revision 1.45 (requested by ...
details: https://anonhg.NetBSD.org/src/rev/41cb66ce69fe
branches: netbsd-1-5
changeset: 491843:41cb66ce69fe
user: he <he%NetBSD.org@localhost>
date: Thu Jun 07 15:43:33 2001 +0000
description:
Pull up revision 1.45 (requested by chs):
Initialize the b_dep field after malloc(). Fixes PR#13065.
diffstat:
sys/arch/hp300/dev/sd.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r f6891305d46d -r 41cb66ce69fe sys/arch/hp300/dev/sd.c
--- a/sys/arch/hp300/dev/sd.c Thu Jun 07 15:37:03 2001 +0000
+++ b/sys/arch/hp300/dev/sd.c Thu Jun 07 15:43:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.42.4.2 2000/10/18 00:10:42 tv Exp $ */
+/* $NetBSD: sd.c,v 1.42.4.3 2001/06/07 15:43:33 he Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -363,6 +363,7 @@
bp->b_flags = B_READ | B_BUSY;
bp->b_data = (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);
@@ -657,6 +658,7 @@
cbp->b_blkno = bn - btodb(boff);
cbp->b_data = cbuf;
cbp->b_bcount = bsize;
+ LIST_INIT(&cbp->b_dep);
#ifdef DEBUG
if (sddebug & SDB_PARTIAL)
printf(" readahead: bn %x cnt %x off %x addr %p\n",
@@ -691,6 +693,7 @@
#endif
}
cbp->b_flags = B_BUSY | B_PHYS | (bp->b_flags & B_READ);
+ LIST_INIT(&cbp->b_dep);
sdstrategy(cbp);
biowait(cbp);
if (cbp->b_flags & B_ERROR) {
Home |
Main Index |
Thread Index |
Old Index