diff options
-rw-r--r-- | sys/dev/onewire/owctr.c | 4 |
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); |