diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2013-12-30 02:08:54 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-01-08 10:17:48 +0400 |
commit | bbc6319676944aa43527656b996766b85558e7e0 (patch) | |
tree | 18561643dd922166db25603fcf6be427e408cc66 | |
parent | 5d2f4767c4eacab351b8450b0de4d3261fe1a957 (diff) | |
download | linux-bbc6319676944aa43527656b996766b85558e7e0.tar.xz |
drm/nouveau/nouveau: fix memory leak in nouveau_crtc_page_flip()
Fix a memory leak in the nouveau_crtc_page_flip() error handling path.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 29c3efdfc7dd..25ea82f8def3 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -610,7 +610,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, ret = nouveau_fence_sync(fence, chan); nouveau_fence_unref(&fence); if (ret) - return ret; + goto fail_free; if (new_bo != old_bo) { ret = nouveau_bo_pin(new_bo, TTM_PL_FLAG_VRAM); |