We can't free struct ahc_softc on NetBSD either, because it comes from
config(9). Fix a corruption on alldevs list when an ahc device fails to initialise.
This commit is contained in:
parent
b33f6da979
commit
90dd891d17
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aic7xxx.c,v 1.114 2005/05/30 04:43:46 christos Exp $ */
|
||||
/* $NetBSD: aic7xxx.c,v 1.115 2005/08/19 17:08:59 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Core routines and tables shareable across OS platforms.
|
||||
|
@ -39,7 +39,7 @@
|
|||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* $Id: aic7xxx.c,v 1.114 2005/05/30 04:43:46 christos Exp $
|
||||
* $Id: aic7xxx.c,v 1.115 2005/08/19 17:08:59 bouyer Exp $
|
||||
*
|
||||
* //depot/aic7xxx/aic7xxx/aic7xxx.c#112 $
|
||||
*
|
||||
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.114 2005/05/30 04:43:46 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.115 2005/08/19 17:08:59 bouyer Exp $");
|
||||
|
||||
#include <dev/ic/aic7xxx_osm.h>
|
||||
#include <dev/ic/aic7xxx_inline.h>
|
||||
|
@ -3965,7 +3965,7 @@ ahc_free(struct ahc_softc *ahc)
|
|||
#endif
|
||||
if (ahc->seep_config != NULL)
|
||||
free(ahc->seep_config, M_DEVBUF);
|
||||
#ifndef __FreeBSD__
|
||||
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
|
||||
free(ahc, M_DEVBUF);
|
||||
#endif
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue