summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-01 06:08:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-01 06:08:58 +0000
commit247be7f6a779afcbdd8e79fc62a1fbad738746e2 (patch)
treed12d0bc26e9152cc47af2de7857c15956210d6a0
parent2c2cc5586d746c118989e15a08a3946beea54928 (diff)
free() firmware with right len; ok dlg
-rw-r--r--sys/dev/pci/if_myx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c
index 67ac6a03bd3..3c3e0cd42f2 100644
--- a/sys/dev/pci/if_myx.c
+++ b/sys/dev/pci/if_myx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myx.c,v 1.82 2015/08/15 01:17:01 dlg Exp $ */
+/* $OpenBSD: if_myx.c,v 1.83 2015/09/01 06:08:57 deraadt Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -486,7 +486,7 @@ myx_loadfirmware(struct myx_softc *sc, const char *filename)
ret = 0;
err:
- free(fw, M_DEVBUF, 0);
+ free(fw, M_DEVBUF, fwlen);
return (ret);
}