Skip to content

Commit

Permalink
video: add missing framebuffer_release in error path
Browse files Browse the repository at this point in the history
This patch fixes a memory leak in the error path.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
axel lin authored and Paul Mundt committed Mar 22, 2011
1 parent 1e93f39 commit 6359691
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/cg14.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ static int __devinit cg14_probe(struct platform_device *op)

out_unmap_regs:
cg14_unmap_regs(op, info, par);
framebuffer_release(info);

out_err:
return err;
Expand Down
1 change: 1 addition & 0 deletions drivers/video/cg6.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ static int __devinit cg6_probe(struct platform_device *op)

out_unmap_regs:
cg6_unmap_regs(op, info, par);
framebuffer_release(info);

out_err:
return err;
Expand Down
1 change: 1 addition & 0 deletions drivers/video/tcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ static int __devinit tcx_probe(struct platform_device *op)

out_unmap_regs:
tcx_unmap_regs(op, info, par);
framebuffer_release(info);

out_err:
return err;
Expand Down

0 comments on commit 6359691

Please sign in to comment.