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 linux/rwsem: Work around broken ...
details: https://anonhg.NetBSD.org/src/rev/52fca288eb67
branches: trunk
changeset: 1028577:52fca288eb67
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:21:54 2021 +0000
description:
linux/rwsem: Work around broken lockdebug macros.
diffstat:
sys/external/bsd/drm2/linux/linux_rwsem.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 78175f98c8e1 -r 52fca288eb67 sys/external/bsd/drm2/linux/linux_rwsem.c
--- a/sys/external/bsd/drm2/linux/linux_rwsem.c Sun Dec 19 11:21:45 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_rwsem.c Sun Dec 19 11:21:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_rwsem.c,v 1.3 2021/12/19 11:21:45 riastradh Exp $ */
+/* $NetBSD: linux_rwsem.c,v 1.4 2021/12/19 11:21:54 riastradh Exp $ */
/*-
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_rwsem.c,v 1.3 2021/12/19 11:21:45 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_rwsem.c,v 1.4 2021/12/19 11:21:54 riastradh Exp $");
#include <sys/types.h>
@@ -143,8 +143,9 @@
}
mutex_exit(&rwsem->rws_lock);
- if (ret)
+ if (ret) {
RWSEM_LOCKED_SH(rwsem);
+ }
return ret;
}
Home |
Main Index |
Thread Index |
Old Index