Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci Fix missing callout_destroy(). Pointed out...
details: https://anonhg.NetBSD.org/src/rev/3f12fba58770
branches: trunk
changeset: 848448:3f12fba58770
user: knakahara <knakahara%NetBSD.org@localhost>
date: Wed Jan 29 08:43:30 2020 +0000
description:
Fix missing callout_destroy(). Pointed out by yamaguchi@n.o.
diffstat:
sys/arch/x86/pci/if_vmx.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r fa9bee3aaf11 -r 3f12fba58770 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Wed Jan 29 06:46:58 2020 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Wed Jan 29 08:43:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vmx.c,v 1.55 2020/01/29 02:58:51 knakahara Exp $ */
+/* $NetBSD: if_vmx.c,v 1.56 2020/01/29 08:43:30 knakahara Exp $ */
/* $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.55 2020/01/29 02:58:51 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.56 2020/01/29 08:43:30 knakahara Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -667,6 +667,7 @@
VMXNET3_CORE_LOCK(sc);
vmxnet3_stop_locked(sc);
callout_halt(&sc->vmx_tick, sc->vmx_mtx);
+ callout_destroy(&sc->vmx_tick);
VMXNET3_CORE_UNLOCK(sc);
ifmedia_delete_instance(&sc->vmx_media, IFM_INST_ANY);
Home |
Main Index |
Thread Index |
Old Index