video: add missing framebuffer_release in error path
PATCH 1/1 video: add missing framebuffer_release in error path
This patch fixes a memory leak in the error path.
Signed-off-by Axel Lin <[email protected]>
--- drivers/video/cg14.c | 1 + drivers/video/cg6.c | 1 + drivers/video/tcx.c | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
drivers/video/cg14.c +1 -0
@@ -565,6 +565,7 @@ out_dealloc_cmap: out_unmap_regs:cg14_unmap_regs (op, info, par); +framebuffer_release (info); out_err:return err;
drivers/video/cg6.c +1 -0
@@ -822,6 +822,7 @@ out_dealloc_cmap: out_unmap_regs:cg6_unmap_regs (op, info, par); +framebuffer_release (info); out_err:return err;
drivers/video/tcx.c +1 -0
@@ -481,6 +481,7 @@ out_dealloc_cmap: out_unmap_regs:tcx_unmap_regs (op, info, par); +framebuffer_release (info); out_err:return err;
Signature · 1 line
1.7.1
From: Axel Lin <[email protected]>
Date: Tue, 15 Feb 2011 17:35:02 +0800
Quoted 3 lines
This patch fixes a memory leak in the error path.
Signed-off-by Axel Lin <[email protected]>
Acked-by David S. Miller <[email protected]>