1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

The ed_probe_Novell should not clear id_maddr when it fails to probe.

This fixes potential panic by kvtop at addr == 0.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
This commit is contained in:
KATO Takenori 1999-09-02 15:01:56 +00:00
parent ae46296f4c
commit c322fa140e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50807
2 changed files with 12 additions and 4 deletions
sys
dev/ed
i386/isa

View File

@ -1282,10 +1282,14 @@ ed_probe_Novell(isa_dev)
struct isa_device *isa_dev;
{
struct ed_softc *sc = &ed_softc[isa_dev->id_unit];
int nports;
isa_dev->id_maddr = 0;
return ed_probe_Novell_generic(sc, isa_dev->id_iobase,
nports = ed_probe_Novell_generic(sc, isa_dev->id_iobase,
isa_dev->id_unit, isa_dev->id_flags);
if (nports)
isa_dev->id_maddr = 0;
return (nports);
}
#if NCARD > 0

View File

@ -1282,10 +1282,14 @@ ed_probe_Novell(isa_dev)
struct isa_device *isa_dev;
{
struct ed_softc *sc = &ed_softc[isa_dev->id_unit];
int nports;
isa_dev->id_maddr = 0;
return ed_probe_Novell_generic(sc, isa_dev->id_iobase,
nports = ed_probe_Novell_generic(sc, isa_dev->id_iobase,
isa_dev->id_unit, isa_dev->id_flags);
if (nports)
isa_dev->id_maddr = 0;
return (nports);
}
#if NCARD > 0