From: Jim Babb <babb@sedhps01.mdc.com>

Subject: Bug Fix for ft.c - please commit
Date: Mon, 14 Feb 94 10:22:54 CST

This fixes a bug where the system can crash if the tape is used
after the floppy has been used.
This commit is contained in:
Nate Williams 1994-02-14 19:22:34 +00:00
parent 44ff78b7aa
commit 56cc87f5d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1159

View File

@ -1703,6 +1703,7 @@ int ftopen(dev_t dev, int arg2) {
/* make sure we found a tape when probed */
if (!(fdc->flags & FDC_HASFTAPE))
return(ENODEV);
fdc->fdu = ftu;
fdc->flags |= FDC_TAPE_BUSY;
return(set_fdcmode(dev, FDC_TAPE_MODE)); /* try to switch to tape */
}