summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-27 05:49:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-27 05:49:24 +0000
commit9bd3fb4c31da80b2bbee428020a55ee578b27a66 (patch)
tree925346d8006cfc709063453a866b4299a9608364
parentaaa8e6ebc0345b98bc04f258a2e921c4ce28646f (diff)
simple size for free()
-rw-r--r--sys/dev/onewire/owctr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/onewire/owctr.c b/sys/dev/onewire/owctr.c
index d9092d61add..48b6d996e49 100644
--- a/sys/dev/onewire/owctr.c
+++ b/sys/dev/onewire/owctr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: owctr.c,v 1.7 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: owctr.c,v 1.8 2015/08/27 05:49:23 deraadt Exp $ */
/*
* Copyright (c) 2010 John L. Scarfone <john@scarfone.net>
*
@@ -211,7 +211,7 @@ owctr_update_counter(void *arg, int bank)
}
onewire_reset(sc->sc_onewire);
- free(buf, M_DEVBUF, 0);
+ free(buf, M_DEVBUF, DS2423_COUNTER_BUFSZ);
done:
onewire_unlock(sc->sc_onewire);