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/include/linux Don't forget to decremen...
details: https://anonhg.NetBSD.org/src/rev/ef3eb60edfe9
branches: trunk
changeset: 331012:ef3eb60edfe9
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jul 26 21:35:06 2014 +0000
description:
Don't forget to decrement the acquired count too.
diffstat:
sys/external/bsd/drm2/include/linux/ww_mutex.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r ba4c8603ae6a -r ef3eb60edfe9 sys/external/bsd/drm2/include/linux/ww_mutex.h
--- a/sys/external/bsd/drm2/include/linux/ww_mutex.h Sat Jul 26 21:19:45 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/ww_mutex.h Sat Jul 26 21:35:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ww_mutex.h,v 1.2 2014/07/22 02:38:31 riastradh Exp $ */
+/* $NetBSD: ww_mutex.h,v 1.3 2014/07/26 21:35:06 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -622,6 +622,8 @@
mutex->wwm_state = WW_UNLOCKED;
break;
case WW_CTX:
+ KASSERT(mutex->wwm_u.ctx != NULL);
+ mutex->wwm_u.ctx->wwx_acquired--;
mutex->wwm_u.ctx = NULL;
/*
* If there are any waiters with contexts, grant the
Home |
Main Index |
Thread Index |
Old Index