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/ttm Don't ttm_tt_destroy bo->...



details:   https://anonhg.NetBSD.org/src/rev/ae1db30bb99c
branches:  trunk
changeset: 330977:ae1db30bb99c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jul 26 06:34:12 2014 +0000

description:
Don't ttm_tt_destroy bo->ttm if bo->destroy will destroy it too.

diffstat:

 sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 40147c3b6cad -r ae1db30bb99c sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c
--- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c       Sat Jul 26 06:26:39 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo.c       Sat Jul 26 06:34:12 2014 +0000
@@ -159,7 +159,7 @@
        BUG_ON(!list_empty(&bo->lru));
        BUG_ON(!list_empty(&bo->ddestroy));
 
-       if (bo->ttm)
+       if (bo->destroy == NULL && bo->ttm)
                ttm_tt_destroy(bo->ttm);
        atomic_dec(&bo->glob->bo_count);
        if (bo->resv == &bo->ttm_resv)



Home | Main Index | Thread Index | Old Index