Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux Exit, don't reenter, the mutex.....
details: https://anonhg.NetBSD.org/src/rev/c9eb7bc6a636
branches: trunk
changeset: 365426:c9eb7bc6a636
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Aug 14 14:53:11 2018 +0000
description:
Exit, don't reenter, the mutex...!@#*@$!&.
>From mrg@.
XXX pullup-7
XXX pullup-8
diffstat:
sys/external/bsd/drm2/linux/linux_writecomb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 96c60d791b9b -r c9eb7bc6a636 sys/external/bsd/drm2/linux/linux_writecomb.c
--- a/sys/external/bsd/drm2/linux/linux_writecomb.c Tue Aug 14 14:49:13 2018 +0000
+++ b/sys/external/bsd/drm2/linux/linux_writecomb.c Tue Aug 14 14:53:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_writecomb.c,v 1.4 2015/10/17 21:06:42 jmcneill Exp $ */
+/* $NetBSD: linux_writecomb.c,v 1.5 2018/08/14 14:53:11 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_writecomb.c,v 1.4 2015/10/17 21:06:42 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_writecomb.c,v 1.5 2018/08/14 14:53:11 riastradh Exp $");
#if defined(__i386__) || defined(__x86_64__)
#define HAS_MTRR 1
@@ -136,7 +136,7 @@
mutex_spin_enter(&linux_writecomb.lock);
mtrr = idr_find(&linux_writecomb.idr, id);
idr_remove(&linux_writecomb.idr, id);
- mutex_spin_enter(&linux_writecomb.lock);
+ mutex_spin_exit(&linux_writecomb.lock);
if (mtrr != NULL) {
mtrr->type = 0;
Home |
Main Index |
Thread Index |
Old Index