Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi Oops -- forgot to kmem_free.
details: https://anonhg.NetBSD.org/src/rev/c9f74e20205a
branches: trunk
changeset: 466070:c9f74e20205a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Dec 10 22:30:34 2019 +0000
description:
Oops -- forgot to kmem_free.
diffstat:
sys/arch/arm/sunxi/sun8i_crypto.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r dfbd2cecf384 -r c9f74e20205a sys/arch/arm/sunxi/sun8i_crypto.c
--- a/sys/arch/arm/sunxi/sun8i_crypto.c Tue Dec 10 19:42:09 2019 +0000
+++ b/sys/arch/arm/sunxi/sun8i_crypto.c Tue Dec 10 22:30:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun8i_crypto.c,v 1.6 2019/12/09 14:56:44 riastradh Exp $ */
+/* $NetBSD: sun8i_crypto.c,v 1.7 2019/12/10 22:30:34 riastradh Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.6 2019/12/09 14:56:44 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.7 2019/12/10 22:30:34 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1295,6 +1295,7 @@
out1: sun8i_crypto_freebuf(sc, req->cu_size, &req->cu_buf);
out0: cv_destroy(&req->cu_cv);
mutex_destroy(&req->cu_lock);
+ kmem_free(req, sizeof(*req));
return error;
}
@@ -1328,4 +1329,5 @@
sun8i_crypto_freebuf(sc, req->cu_size, &req->cu_buf);
cv_destroy(&req->cu_cv);
mutex_destroy(&req->cu_lock);
+ kmem_free(req, sizeof(*req));
}
Home |
Main Index |
Thread Index |
Old Index