diff options
author | cperciva <cperciva@FreeBSD.org> | 2004-02-22 09:52:46 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2004-02-22 09:52:46 +0000 |
commit | e4a1f86f9c21cb53a38b99482b318ee58e71b3bd (patch) | |
tree | c430e0a394b89fd4f53b5b1073157b5797d12950 /sys/dev/mlx | |
parent | 9a6dbee3f6f16a6dfecbfe79b7e6020ad8970db2 (diff) | |
download | FreeBSD-src-e4a1f86f9c21cb53a38b99482b318ee58e71b3bd.zip FreeBSD-src-e4a1f86f9c21cb53a38b99482b318ee58e71b3bd.tar.gz |
Don't free meo until we're finished using it.
Reported by: "Ted Unangst" <tedu@coverity.com>
Approved by: rwatson (mentor), scottl
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r-- | sys/dev/mlx/mlx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index 67d1b2b..9070af2 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -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? */ |