pasfind(): avoid silly bug - if bus_space_map() of SB I/O space failed,

we used bad label and tried to bus_space_unmap() invalid memory
	region

Fixes port-i386/9992 by Jarkko Teppo <jate@uwasa.fi>.
This commit is contained in:
jdolecek 2000-04-28 08:51:42 +00:00
parent e3d2f0ae85
commit 520f9dc581
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pas.c,v 1.46 1999/02/18 07:08:36 mycroft Exp $ */
/* $NetBSD: pas.c,v 1.47 2000/04/28 08:51:42 jdolecek Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -389,7 +389,7 @@ pasfind(parent, sc, ia, probing)
&sc->sc_sbdsp.sc_ioh)) {
printf("pas: can't map i/o space 0x%x/%d in probe\n",
ia->ia_iobase, SBP_NPORT);
goto unmap;
goto unmap1;
}
if (sbdsp_reset(&sc->sc_sbdsp) < 0) {