Don't free meo until we're finished using it.

Reported by:	"Ted Unangst" <tedu@coverity.com>
Approved by:	rwatson (mentor), scottl
This commit is contained in:
Colin Percival 2004-02-22 09:52:46 +00:00
parent 3ea5b421eb
commit caa32ef5c2

View File

@ -433,13 +433,13 @@ mlx_attach(struct mlx_softc *sc)
return(ENXIO);
}
sc->mlx_enq2->me_firmware_id = ('0' << 24) | (0 << 16) | (meo->me_fwminor << 8) | meo->me_fwmajor;
free(meo, M_DEVBUF);
/* XXX require 2.42 or better (PCI) or 2.14 or better (EISA) */
if (meo->me_fwminor < 42) {
device_printf(sc->mlx_dev, " *** WARNING *** This firmware revision is not recommended\n");
device_printf(sc->mlx_dev, " *** WARNING *** Use revision 2.42 or later\n");
}
free(meo, M_DEVBUF);
break;
case MLX_IFTYPE_3:
/* XXX certify 3.52? */