Commit 6359691d authored by axel lin's avatar axel lin Committed by Paul Mundt

video: add missing framebuffer_release in error path

This patch fixes a memory leak in the error path.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1e93f390
...@@ -565,6 +565,7 @@ static int __devinit cg14_probe(struct platform_device *op) ...@@ -565,6 +565,7 @@ static int __devinit cg14_probe(struct platform_device *op)
out_unmap_regs: out_unmap_regs:
cg14_unmap_regs(op, info, par); cg14_unmap_regs(op, info, par);
framebuffer_release(info);
out_err: out_err:
return err; return err;
......
...@@ -821,6 +821,7 @@ static int __devinit cg6_probe(struct platform_device *op) ...@@ -821,6 +821,7 @@ static int __devinit cg6_probe(struct platform_device *op)
out_unmap_regs: out_unmap_regs:
cg6_unmap_regs(op, info, par); cg6_unmap_regs(op, info, par);
framebuffer_release(info);
out_err: out_err:
return err; return err;
......
...@@ -480,6 +480,7 @@ static int __devinit tcx_probe(struct platform_device *op) ...@@ -480,6 +480,7 @@ static int __devinit tcx_probe(struct platform_device *op)
out_unmap_regs: out_unmap_regs:
tcx_unmap_regs(op, info, par); tcx_unmap_regs(op, info, par);
framebuffer_release(info);
out_err: out_err:
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment