diff options
-rw-r--r-- | sys/dev/utopia/utopia.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/utopia/utopia.c b/sys/dev/utopia/utopia.c index caac02e..a4e7331 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 */ |