drm/nouveau: unreference fence after syncing
authorBen Skeggs <bskeggs@redhat.com>
Thu, 21 Nov 2013 04:22:39 +0000 (14:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Dec 2013 13:28:57 +0000 (23:28 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c

index acec7746cafdcec93ea6284ec1f8b1ca08979d58..29c3efdfc7dd714e00ae03525d0b9528fce841cd 100644 (file)
@@ -608,6 +608,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
        fence = nouveau_fence_ref(new_bo->bo.sync_obj);
        spin_unlock(&new_bo->bo.bdev->fence_lock);
        ret = nouveau_fence_sync(fence, chan);
+       nouveau_fence_unref(&fence);
        if (ret)
                return ret;