Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 1997 23:58:13 -0800 (PST)
From:      hosokawa@jp.FreeBSD.org
To:        freebsd-gnats-submit@freebsd.org
Subject:   i386/2427: 2.2-BETA ft driver panics when there're no floppy drives
Message-ID:  <199701090758.XAA14751@freefall.freebsd.org>
Resent-Message-ID: <199701090800.AAA14831@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2427
>Category:       i386
>Synopsis:       2.2-BETA ft driver panics when there're no floppy drives
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan  9 00:00:01 PST 1997
>Last-Modified:
>Originator:     Tatsumi Hosokawa
>Organization:
FreeBSD User's Group, Japan
>Release:        2.2-BETA
>Environment:
FreeBSD lenlen.mt.cs.keio.ac.jp 2.2-BETA_A FreeBSD 2.2-BETA_A #1: Thu Jan  9 16:
18:41 JST 1997     hosokawa@lenlen.mt.cs.keio.ac.jp:/usr/src/sys.PAO/compile/PAO
_TEST  i386
>Description:
Subject says all.
>How-To-Repeat:
Boot from boot.flp on non-fd machines.
It panics at ftopen()
>Fix:
It's easy.  Please commit it ASAP.

*** /usr/src/sys.2.2-BETA/i386/isa/ft.c Fri Nov 29 06:57:17 1996
--- ft.c        Thu Jan  9 16:17:24 1997
***************
*** 2044,2049 ****
--- 2044,2051 ----
    /* 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);

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701090758.XAA14751>