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:
parent
3ea5b421eb
commit
caa32ef5c2
@ -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? */
|
||||
|
Loading…
Reference in New Issue
Block a user