summaryrefslogtreecommitdiff
path: root/sys/dev/sdmmc/sdhc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-06 03:15:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-06 03:15:30 +0000
commit749fd17f08b39635d88e3fdda20531e25bf6e720 (patch)
tree6eaea12f2d4c24b82dd855b18fafc3748bb0cdb0 /sys/dev/sdmmc/sdhc.c
parentbe71528a93e3d4026ef3549be281bb786bd5ec4f (diff)
add sizes to free() calls
ok dhill
Diffstat (limited to 'sys/dev/sdmmc/sdhc.c')
-rw-r--r--sys/dev/sdmmc/sdhc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdhc.c b/sys/dev/sdmmc/sdhc.c
index b2ed0f23afc..ca8fbaa4bc4 100644
--- a/sys/dev/sdmmc/sdhc.c
+++ b/sys/dev/sdmmc/sdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdhc.c,v 1.53 2017/01/21 05:42:04 guenther Exp $ */
+/* $OpenBSD: sdhc.c,v 1.54 2017/04/06 03:15:29 deraadt Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -326,7 +326,7 @@ sdhc_host_found(struct sdhc_softc *sc, bus_space_tag_t iot,
return 0;
err:
- free(hp, M_DEVBUF, 0);
+ free(hp, M_DEVBUF, sizeof *hp);
sc->sc_host[sc->sc_nhosts - 1] = NULL;
sc->sc_nhosts--;
return (error);