From owner-freebsd-bugs Thu Jan 9 00:00:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA14853 for bugs-outgoing; Thu, 9 Jan 1997 00:00:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA14831; Thu, 9 Jan 1997 00:00:04 -0800 (PST) Resent-Date: Thu, 9 Jan 1997 00:00:04 -0800 (PST) Resent-Message-Id: <199701090800.AAA14831@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.XAA14751;Wed; (8.8.4/8.8.4);, 8 Jan 1997 23:58:13.-0800 (PST) Message-Id: <199701090758.XAA14751@freefall.freebsd.org> Date: Wed, 8 Jan 1997 23:58:13 -0800 (PST) From: hosokawa@jp.FreeBSD.org To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: i386/2427: 2.2-BETA ft driver panics when there're no floppy drives Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: