aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Paeps <philip@FreeBSD.org>2007-12-05 19:32:59 +0000
committerPhilip Paeps <philip@FreeBSD.org>2007-12-05 19:32:59 +0000
commite383ee75afd660d3d549a35135f19205a56cb1cb (patch)
treee0fa32b3e7f3266ca8037d979ab0d93f3af0cfd0 /sys
parent6c3c35e413045036ccf83845b238c0e62ba2b738 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/utopia/utopia.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/utopia/utopia.c b/sys/dev/utopia/utopia.c
index caac02e0e83cf..a4e7331fffc0d 100644
--- a/sys/dev/utopia/utopia.c
+++ b/sys/dev/utopia/utopia.c
@@ -444,10 +444,9 @@ utopia_sysctl_stats(SYSCTL_HANDLER_ARGS)
UTP_UNLOCK(utp);
error = SYSCTL_OUT(req, val, sizeof(utp->stats));
- free(val, M_TEMP);
-
if (error && req->newptr != NULL)
bcopy(val, &utp->stats, sizeof(utp->stats));
+ free(val, M_TEMP);
/* ignore actual new value */