summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1997-09-22 22:58:08 +0000
committergibbs <gibbs@FreeBSD.org>1997-09-22 22:58:08 +0000
commita996bdcd1b88a2b5d823c6f6d80d2b85d6a21b24 (patch)
tree2579ed62af5b138cc14ffe4356b05d82fa5d407b
parent7666d80ef152ef7eb0234dfbfde3bda6b507be21 (diff)
downloadFreeBSD-src-a996bdcd1b88a2b5d823c6f6d80d2b85d6a21b24.zip
FreeBSD-src-a996bdcd1b88a2b5d823c6f6d80d2b85d6a21b24.tar.gz
Add a missing bufq_init call. The original code never initialized it's
buffer queue so I missed this when I changed buf_queue_head. This probably fixes Soren's problem too, but he never mentioned which CD driver he was using. 8-) Submitted by: dave adkins <adkin003@tc.umn.edu>
-rw-r--r--sys/i386/isa/wcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c
index 8af88a6..72b7aa3 100644
--- a/sys/i386/isa/wcd.c
+++ b/sys/i386/isa/wcd.c
@@ -286,6 +286,7 @@ wcdattach (struct atapi *ata, int unit, struct atapi_params *ap, int debug)
}
wcdtab[wcdnlun] = t;
bzero (t, sizeof (struct wcd));
+ bufq_init(&t->buf_queue);
t->ata = ata;
t->unit = unit;
lun = t->lun = wcdnlun++;
OpenPOWER on IntegriCloud