Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/linux Try not to ask rbtree to overw...
details: https://anonhg.NetBSD.org/src/rev/b2e1bfe5b379
branches: trunk
changeset: 992853:b2e1bfe5b379
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 13:35:55 2018 +0000
description:
Try not to ask rbtree to overwrite random fields with garbage.
diffstat:
sys/external/bsd/common/linux/linux_work.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 94b5a4952bae -r b2e1bfe5b379 sys/external/bsd/common/linux/linux_work.c
--- a/sys/external/bsd/common/linux/linux_work.c Mon Aug 27 13:35:35 2018 +0000
+++ b/sys/external/bsd/common/linux/linux_work.c Mon Aug 27 13:35:55 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_work.c,v 1.6 2018/08/27 07:46:28 riastradh Exp $ */
+/* $NetBSD: linux_work.c,v 1.7 2018/08/27 13:35:55 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.6 2018/08/27 07:46:28 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.7 2018/08/27 13:35:55 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -180,7 +180,7 @@
static const rb_tree_ops_t workqueues_rb_ops = {
.rbto_compare_nodes = compare_nodes,
.rbto_compare_key = compare_key,
- .rbto_node_offset = offsetof(struct workqueue_struct, wq_lwp),
+ .rbto_node_offset = offsetof(struct workqueue_struct, wq_node),
};
struct wq_whoami_work {
Home |
Main Index |
Thread Index |
Old Index