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 drm: Need write lock on ...
details: https://anonhg.NetBSD.org/src/rev/e286c401b79a
branches: trunk
changeset: 1028856:e286c401b79a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:13:08 2021 +0000
description:
drm: Need write lock on vmobjlock for pgo_put.
diffstat:
sys/external/bsd/drm2/include/linux/shmem_fs.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 33fe9e7ea535 -r e286c401b79a sys/external/bsd/drm2/include/linux/shmem_fs.h
--- a/sys/external/bsd/drm2/include/linux/shmem_fs.h Sun Dec 19 12:13:01 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/shmem_fs.h Sun Dec 19 12:13:08 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shmem_fs.h,v 1.3 2021/12/19 11:33:49 riastradh Exp $ */
+/* $NetBSD: shmem_fs.h,v 1.4 2021/12/19 12:13:08 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -80,6 +80,8 @@
KASSERT(0 <= start);
KASSERT(start <= end);
}
+
+ rw_enter(uobj->vmobjlock, RW_WRITER);
(*uobj->pgops->pgo_put)(uobj, start, end, flags);
}
Home |
Main Index |
Thread Index |
Old Index