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:
parent
ed3fbc3030
commit
8b39beda58
@ -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 */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user