Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Use kmem_intr_free in key_freesaval which can b...
details: https://anonhg.NetBSD.org/src/rev/384c24b75776
branches: trunk
changeset: 353719:384c24b75776
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri May 19 04:39:25 2017 +0000
description:
Use kmem_intr_free in key_freesaval which can be called in softint
diffstat:
sys/netipsec/key.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (55 lines):
diff -r b3b0035b9682 -r 384c24b75776 sys/netipsec/key.c
--- a/sys/netipsec/key.c Fri May 19 04:34:09 2017 +0000
+++ b/sys/netipsec/key.c Fri May 19 04:39:25 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.132 2017/05/17 02:19:09 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.133 2017/05/19 04:39:25 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.132 2017/05/17 02:19:09 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.133 2017/05/19 04:39:25 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -3136,30 +3136,30 @@
{
if (sav->replay != NULL) {
- kmem_free(sav->replay, sav->replay_len);
+ kmem_intr_free(sav->replay, sav->replay_len);
sav->replay = NULL;
sav->replay_len = 0;
}
if (sav->key_auth != NULL) {
- kmem_free(sav->key_auth, sav->key_auth_len);
+ kmem_intr_free(sav->key_auth, sav->key_auth_len);
sav->key_auth = NULL;
sav->key_auth_len = 0;
}
if (sav->key_enc != NULL) {
- kmem_free(sav->key_enc, sav->key_enc_len);
+ kmem_intr_free(sav->key_enc, sav->key_enc_len);
sav->key_enc = NULL;
sav->key_enc_len = 0;
}
if (sav->lft_c != NULL) {
- kmem_free(sav->lft_c, sizeof(*(sav->lft_c)));
+ kmem_intr_free(sav->lft_c, sizeof(*(sav->lft_c)));
sav->lft_c = NULL;
}
if (sav->lft_h != NULL) {
- kmem_free(sav->lft_h, sizeof(*(sav->lft_h)));
+ kmem_intr_free(sav->lft_h, sizeof(*(sav->lft_h)));
sav->lft_h = NULL;
}
if (sav->lft_s != NULL) {
- kmem_free(sav->lft_s, sizeof(*(sav->lft_s)));
+ kmem_intr_free(sav->lft_s, sizeof(*(sav->lft_s)));
sav->lft_s = NULL;
}
}
Home |
Main Index |
Thread Index |
Old Index