diff options
author | kato <kato@FreeBSD.org> | 1997-01-10 06:50:47 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-01-10 06:50:47 +0000 |
commit | 3f6cd4a8c72c1ac9599b2e9bde75fd101bb3c6b2 (patch) | |
tree | 425d7bf9f6ad70fd85ae62e5b0107d1ed1b325ed /sys | |
parent | a8e6e9bc1508aaf035e0791abddc555947150c9a (diff) | |
download | FreeBSD-src-3f6cd4a8c72c1ac9599b2e9bde75fd101bb3c6b2.zip FreeBSD-src-3f6cd4a8c72c1ac9599b2e9bde75fd101bb3c6b2.tar.gz |
Synchronize with sys/i386/isa/ft.c revision 1.29 (fix ft driver
panics).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/ft.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pc98/pc98/ft.c b/sys/pc98/pc98/ft.c index 5f3efa9..be5ea73 100644 --- a/sys/pc98/pc98/ft.c +++ b/sys/pc98/pc98/ft.c @@ -17,7 +17,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * ft.c - QIC-40/80 floppy tape driver - * $Id: ft.c,v 1.6 1996/11/02 10:39:25 asami Exp $ + * $Id: ft.c,v 1.7 1996/12/04 04:20:45 asami Exp $ * * 01/19/95 ++sg * Cleaned up recalibrate/seek code at attach time for FreeBSD 2.x. @@ -2119,6 +2119,8 @@ ftopen(dev_t dev, int arg2) { /* check bounds */ if (ftu >= NFT) return(ENXIO); + if (!ft_data[ftu]) + return(ENXIO); fdc = ft_data[ftu]->fdc; if ((fdc == NULL) || (ft_data[ftu]->type == NO_TYPE)) return(ENXIO); |