Skip to content

Commit bbc6319

Browse files
Christian EngelmayerBen Skeggs
authored andcommitted
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>
1 parent 5d2f476 commit bbc6319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
610610
ret = nouveau_fence_sync(fence, chan);
611611
nouveau_fence_unref(&fence);
612612
if (ret)
613-
return ret;
613+
goto fail_free;
614614

615615
if (new_bo != old_bo) {
616616
ret = nouveau_bo_pin(new_bo, TTM_PL_FLAG_VRAM);

0 commit comments

Comments
 (0)