aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_fence.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-09-29 04:06:18 -0400
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-09-30 08:04:00 -0400
commit15a996bbb6978ae21c497aeadfe20deca6ddd07a (patch)
tree208bcce51bf6bfa6b1d831a15ced5a32a0c9e5b0 /drivers/gpu/drm/nouveau/nv04_fence.c
parente3be4c230dfadf79567a245505a47a90db97f968 (diff)
drm/nouveau: assign fence_chan->name correctly
Make nouveau_fence_chan refcounted, to make trace_fence_destroy always return the correct name without a race condition. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_fence.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_fence.c b/drivers/gpu/drm/nouveau/nv04_fence.c
index 4484131d826a..f9859deb108a 100644
--- a/drivers/gpu/drm/nouveau/nv04_fence.c
+++ b/drivers/gpu/drm/nouveau/nv04_fence.c
@@ -67,7 +67,7 @@ nv04_fence_context_del(struct nouveau_channel *chan)
67 struct nv04_fence_chan *fctx = chan->fence; 67 struct nv04_fence_chan *fctx = chan->fence;
68 nouveau_fence_context_del(&fctx->base); 68 nouveau_fence_context_del(&fctx->base);
69 chan->fence = NULL; 69 chan->fence = NULL;
70 kfree(fctx); 70 nouveau_fence_context_free(&fctx->base);
71} 71}
72 72
73static int 73static int