diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2013-12-29 23:08:54 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-01-08 16:17:12 +1000 |
commit | 634af5583e12eae7e59b372e0360c39006c862c3 (patch) | |
tree | 728fc09b22a65e71363ebfab1d8a8495d5e15b55 | |
parent | f1a875142f8a9ca84accc59ed5994fa0a2f3e585 (diff) |
nouveau: fix memory leak in nouveau_crtc_page_flip()linux-3.13
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-- | drm/nouveau_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/nouveau_display.c b/drm/nouveau_display.c index 29c3efdf..25ea82f8 100644 --- a/drm/nouveau_display.c +++ b/drm/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); |