diff options
| author | riastradh <riastradh@NetBSD.org> | 2020-07-04 18:07:31 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2020-07-04 18:07:31 +0000 |
| commit | e32d8b5e2cb2c83bd8b193524179e671655642b1 (patch) | |
| tree | 69854a3c23f4aa5a0166e6a89522e35a2ad0f146 /sys/opencrypto | |
| parent | 26615d8cd8e34fe04b0a66202a400eb2e922451e (diff) | |
Fix kmem_free size in recent malloc->kmem conversion.
Should address this bracket report that has my name all over it:
https://mail-index.netbsd.org/current-users/2020/07/04/msg039059.html
Diffstat (limited to 'sys/opencrypto')
| -rw-r--r-- | sys/opencrypto/cryptosoft.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index eed1e958677..7b7cb7701ab 100644 --- a/sys/opencrypto/cryptosoft.c +++ b/sys/opencrypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $NetBSD: cryptosoft.c,v 1.56 2020/06/29 23:34:48 riastradh Exp $ */ +/* $NetBSD: cryptosoft.c,v 1.57 2020/07/04 18:07:31 riastradh Exp $ */ /* $FreeBSD: src/sys/opencrypto/cryptosoft.c,v 1.2.2.1 2002/11/21 23:34:23 sam Exp $ */ /* $OpenBSD: cryptosoft.c,v 1.35 2002/04/26 08:43:50 deraadt Exp $ */ @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.56 2020/06/29 23:34:48 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.57 2020/07/04 18:07:31 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1096,7 +1096,7 @@ swcr_freesession(void *arg, u_int64_t tid) } if (swd->sw_octx) { explicit_memset(swd->sw_octx, 0, swd->sw_klen); - kmem_free(swd->sw_octx, axf->ctxsize); + kmem_free(swd->sw_octx, swd->sw_klen); } break; |
