mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-25 03:05:08 +00:00
Bruce's fix for when dk_ndrive >= DK_NDRIVE. Fixes CDROM changer
and other "lots of CDROM devices" problems. This code should be put in a single place.
This commit is contained in:
parent
4564c19cc7
commit
23dd4ed477
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12936
|
@ -14,7 +14,7 @@
|
||||||
*
|
*
|
||||||
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
|
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
|
||||||
*
|
*
|
||||||
* $Id: cd.c,v 1.52 1995/12/10 20:02:47 bde Exp $
|
* $Id: cd.c,v 1.53 1995/12/14 09:54:18 phk Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SPLCD splbio
|
#define SPLCD splbio
|
||||||
|
@ -588,7 +588,7 @@ cdstart(unit, flags)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cdqueues++;
|
cdqueues++;
|
||||||
if(cd->dkunit) {
|
if(cd->dkunit >= 0) {
|
||||||
dk_xfer[cd->dkunit]++;
|
dk_xfer[cd->dkunit]++;
|
||||||
dk_seek[cd->dkunit]++; /* don't know */
|
dk_seek[cd->dkunit]++; /* don't know */
|
||||||
dk_wds[cd->dkunit] += bp->b_bcount >> 6;
|
dk_wds[cd->dkunit] += bp->b_bcount >> 6;
|
||||||
|
|
Loading…
Reference in a new issue