aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKATO Takenori <kato@FreeBSD.org>1997-01-10 06:50:47 +0000
committerKATO Takenori <kato@FreeBSD.org>1997-01-10 06:50:47 +0000
commitbe832e6c0766458ad9d4b7c50c607d0d3934eebd (patch)
tree425d7bf9f6ad70fd85ae62e5b0107d1ed1b325ed
parent34cf430230abc5665967e9bc9396096e034cc2c3 (diff)
Notes
-rw-r--r--sys/pc98/pc98/ft.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pc98/pc98/ft.c b/sys/pc98/pc98/ft.c
index 5f3efa9b716b..be5ea7329677 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);