diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-11-13 04:23:46 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-11-14 08:55:06 +0400 |
commit | 5d216f6013d54a6085d5e499407aec6d67e79990 (patch) | |
tree | 472870c1928b1533644b8b3e44e5517d0bdc44fa /drivers/gpu/drm/nouveau/nouveau_fence.c | |
parent | 0bae1d61c7512580f1622a880d82164c9534fce3 (diff) | |
download | linux-5d216f6013d54a6085d5e499407aec6d67e79990.tar.xz |
drm/nouveau: allow nouveau_fence_ref() to be a noop
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fence.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fence.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c b/drivers/gpu/drm/nouveau/nouveau_fence.c index 34b82711e7c8..40cf52e6d6d2 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fence.c +++ b/drivers/gpu/drm/nouveau/nouveau_fence.c @@ -306,7 +306,8 @@ nouveau_fence_unref(struct nouveau_fence **pfence) struct nouveau_fence * nouveau_fence_ref(struct nouveau_fence *fence) { - kref_get(&fence->kref); + if (fence) + kref_get(&fence->kref); return fence; } |