diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-09-29 04:06:18 -0400 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-09-30 08:04:00 -0400 |
commit | 15a996bbb6978ae21c497aeadfe20deca6ddd07a (patch) | |
tree | 208bcce51bf6bfa6b1d831a15ced5a32a0c9e5b0 /drivers/gpu/drm/nouveau/nv10_fence.c | |
parent | e3be4c230dfadf79567a245505a47a90db97f968 (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/nv10_fence.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv10_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv10_fence.c b/drivers/gpu/drm/nouveau/nv10_fence.c index 737d066ffc60..5e1ea1cdce75 100644 --- a/drivers/gpu/drm/nouveau/nv10_fence.c +++ b/drivers/gpu/drm/nouveau/nv10_fence.c | |||
@@ -63,7 +63,7 @@ nv10_fence_context_del(struct nouveau_channel *chan) | |||
63 | nvif_object_fini(&fctx->head[i]); | 63 | nvif_object_fini(&fctx->head[i]); |
64 | nvif_object_fini(&fctx->sema); | 64 | nvif_object_fini(&fctx->sema); |
65 | chan->fence = NULL; | 65 | chan->fence = NULL; |
66 | kfree(fctx); | 66 | nouveau_fence_context_free(&fctx->base); |
67 | } | 67 | } |
68 | 68 | ||
69 | int | 69 | int |