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>
This commit is contained in:
Justin T. Gibbs 1997-09-22 22:58:08 +00:00
parent c1f011d2f1
commit ee573943a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29727

View file

@ -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++;