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/dist/drm/nouveau/nvkm/core nouveau: Fi...
details: https://anonhg.NetBSD.org/src/rev/e5f4ee4ea97e
branches: trunk
changeset: 1028462:e5f4ee4ea97e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:06:19 2021 +0000
description:
nouveau: Fix sense of on_tree test before removal.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 69ebab391d79 -r e5f4ee4ea97e sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c Sun Dec 19 11:06:12 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c Sun Dec 19 11:06:19 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_nvkm_core_object.c,v 1.9 2021/12/19 11:05:55 riastradh Exp $ */
+/* $NetBSD: nouveau_nvkm_core_object.c,v 1.10 2021/12/19 11:06:19 riastradh Exp $ */
/*
* Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
* Authors: Ben Skeggs
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_object.c,v 1.9 2021/12/19 11:05:55 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_object.c,v 1.10 2021/12/19 11:06:19 riastradh Exp $");
#include <core/object.h>
#include <core/client.h>
@@ -69,7 +69,7 @@
nvkm_object_remove(struct nvkm_object *object)
{
#ifdef __NetBSD__
- if (!object->on_tree)
+ if (object->on_tree)
rb_tree_remove_node(&object->client->objtree, object);
#else
if (!RB_EMPTY_NODE(&object->node))
Home |
Main Index |
Thread Index |
Old Index