drm/nouveau: assign fence_chan->name correctly
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 29 Sep 2014 08:06:18 +0000 (10:06 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 30 Sep 2014 12:04:00 +0000 (14:04 +0200)
commit15a996bbb6978ae21c497aeadfe20deca6ddd07a
tree208bcce51bf6bfa6b1d831a15ced5a32a0c9e5b0
parente3be4c230dfadf79567a245505a47a90db97f968
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>
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nouveau_fence.h
drivers/gpu/drm/nouveau/nv04_fence.c
drivers/gpu/drm/nouveau/nv10_fence.c
drivers/gpu/drm/nouveau/nv84_fence.c