Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix race when freeing sensors.
details: https://anonhg.NetBSD.org/src/rev/266f9932d563
branches: trunk
changeset: 1021687:266f9932d563
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 13 10:04:10 2021 +0000
description:
Fix race when freeing sensors.
diffstat:
sys/dev/pci/arcmsr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 9687db615bae -r 266f9932d563 sys/dev/pci/arcmsr.c
--- a/sys/dev/pci/arcmsr.c Sun Jun 13 10:01:43 2021 +0000
+++ b/sys/dev/pci/arcmsr.c Sun Jun 13 10:04:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arcmsr.c,v 1.41 2021/04/24 23:36:57 thorpej Exp $ */
+/* $NetBSD: arcmsr.c,v 1.42 2021/06/13 10:04:10 mlelstv Exp $ */
/* $OpenBSD: arc.c,v 1.68 2007/10/27 03:28:27 dlg Exp $ */
/*
@@ -21,7 +21,7 @@
#include "bio.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.41 2021/04/24 23:36:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arcmsr.c,v 1.42 2021/06/13 10:04:10 mlelstv Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -1884,9 +1884,9 @@
bad:
sysmon_envsys_destroy(sc->sc_sme);
- kmem_free(sc->sc_arc_sensors, slen);
+ sc->sc_sme = NULL;
- sc->sc_sme = NULL;
+ kmem_free(sc->sc_arc_sensors, slen);
sc->sc_arc_sensors = NULL;
kthread_exit(0);
Home |
Main Index |
Thread Index |
Old Index