summaryrefslogtreecommitdiff
path: root/sys/dev/ic/fxp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-29 20:55:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-29 20:55:35 +0000
commit9da82e1fd89bd737f396aba53e9f1790a1e795f2 (patch)
tree2b505e5476f26b0ef72593aadcc2b16a8d3d4525 /sys/dev/ic/fxp.c
parent8863901c4f4a353f58b08c5ce893fe39d1cc06a3 (diff)
firmware sizes are known; use them for free()
Diffstat (limited to 'sys/dev/ic/fxp.c')
-rw-r--r--sys/dev/ic/fxp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c
index 60f95db8ae2..094b898fff0 100644
--- a/sys/dev/ic/fxp.c
+++ b/sys/dev/ic/fxp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fxp.c,v 1.121 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: fxp.c,v 1.122 2015/08/29 20:55:34 deraadt Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
@@ -1048,7 +1048,7 @@ fxp_detach(struct fxp_softc *sc)
#ifndef SMALL_KERNEL
if (sc->sc_ucodebuf)
- free(sc->sc_ucodebuf, M_DEVBUF, 0);
+ free(sc->sc_ucodebuf, M_DEVBUF, sc->sc_ucodelen);
#endif
}