Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern eventfd_destroy(): Add missing kmem_free().
details: https://anonhg.NetBSD.org/src/rev/940e111cb8b2
branches: trunk
changeset: 1023660:940e111cb8b2
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Sep 20 14:30:05 2021 +0000
description:
eventfd_destroy(): Add missing kmem_free().
diffstat:
sys/kern/sys_eventfd.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 9113ce6ee729 -r 940e111cb8b2 sys/kern/sys_eventfd.c
--- a/sys/kern/sys_eventfd.c Mon Sep 20 11:47:26 2021 +0000
+++ b/sys/kern/sys_eventfd.c Mon Sep 20 14:30:05 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_eventfd.c,v 1.3 2021/09/20 11:12:35 skrll Exp $ */
+/* $NetBSD: sys_eventfd.c,v 1.4 2021/09/20 14:30:05 thorpej Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_eventfd.c,v 1.3 2021/09/20 11:12:35 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_eventfd.c,v 1.4 2021/09/20 14:30:05 thorpej Exp $");
/*
* eventfd
@@ -131,6 +131,8 @@
seldestroy(&efd->efd_write_sel);
mutex_destroy(&efd->efd_lock);
+
+ kmem_free(efd, sizeof(*efd));
}
/*
Home |
Main Index |
Thread Index |
Old Index