Skip to content

Commit

Permalink
drm/nouveau/nouveau: fix memory leak in nouveau_crtc_page_flip()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Engelmayer authored and Ben Skeggs committed Jan 8, 2014
1 parent 5d2f476 commit bbc6319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbc6319

Please sign in to comment.