mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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:
parent
ae46296f4c
commit
c322fa140e
2 changed files with 12 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue