diff options
| author | 2015-08-28 00:03:53 +0000 | |
|---|---|---|
| committer | 2015-08-28 00:03:53 +0000 | |
| commit | bae2bd509caafb58e32eb30678e33df546f85cbd (patch) | |
| tree | e2e5d64033fc6209583f14e91349f7b131de68f5 /sys/nfs/nfs_aiod.c | |
| parent | Update: add include/libdrm, sort include/EGL, add share/util-macros (diff) | |
| download | wireguard-openbsd-bae2bd509caafb58e32eb30678e33df546f85cbd.tar.xz wireguard-openbsd-bae2bd509caafb58e32eb30678e33df546f85cbd.zip | |
fairly simple sizes for free(); ok tedu
Diffstat (limited to 'sys/nfs/nfs_aiod.c')
| -rw-r--r-- | sys/nfs/nfs_aiod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_aiod.c b/sys/nfs/nfs_aiod.c index 0f002b666e9..ddb595800fc 100644 --- a/sys/nfs/nfs_aiod.c +++ b/sys/nfs/nfs_aiod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_aiod.c,v 1.6 2014/07/12 18:43:52 tedu Exp $ */ +/* $OpenBSD: nfs_aiod.c,v 1.7 2015/08/28 00:03:54 deraadt Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -147,7 +147,7 @@ loop: /* Loop around until SIGKILL */ goto loop; out1: - free(aiod, M_TEMP, 0); + free(aiod, M_TEMP, sizeof(*aiod)); nfs_numaiods--; KASSERT(nfs_numaiods >= 0); /* Rejust the limit of bufs to queue. See comment above. */ |
