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/engine/dma Mark ...



details:   https://anonhg.NetBSD.org/src/rev/6e7eadd8aa2d
branches:  trunk
changeset: 992966:6e7eadd8aa2d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:18:30 2018 +0000

description:
Mark it on the tree so we remove it during destruction.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/dma/nouveau_nvkm_engine_dma_base.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r fec1b11162d2 -r 6e7eadd8aa2d sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/dma/nouveau_nvkm_engine_dma_base.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/dma/nouveau_nvkm_engine_dma_base.c     Mon Aug 27 14:18:18 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/dma/nouveau_nvkm_engine_dma_base.c     Mon Aug 27 14:18:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_engine_dma_base.c,v 1.3 2018/08/27 07:36:07 riastradh Exp $       */
+/*     $NetBSD: nouveau_nvkm_engine_dma_base.c,v 1.4 2018/08/27 14:18:30 riastradh Exp $       */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_dma_base.c,v 1.3 2018/08/27 07:36:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_dma_base.c,v 1.4 2018/08/27 14:18:30 riastradh Exp $");
 
 #include "priv.h"
 
@@ -118,6 +118,7 @@
        if (collision != dmaobj)
                /* XXX Don't we have to free this?  */
                return -EEXIST;
+       dmaobj->on_tree = true;
 #else
        while (*ptr) {
                struct nvkm_dmaobj *obj = container_of(*ptr, typeof(*obj), rb);



Home | Main Index | Thread Index | Old Index