From: Ben Skeggs Date: Thu, 21 Nov 2013 04:22:39 +0000 (+1000) Subject: drm/nouveau: unreference fence after syncing X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2fd04c81dc652689b104ab16eba26146dde5c43f;p=linux-beck.git drm/nouveau: unreference fence after syncing Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index acec7746cafd..29c3efdfc7dd 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -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;