commit | 6359691d7efc639bf0f996aa9a694b2653fc6ae6 | [log] [tgz] |
---|---|---|
author | axel lin <axel.lin@gmail.com> | Tue Feb 15 09:35:02 2011 +0000 |
committer | Paul Mundt <lethal@linux-sh.org> | Tue Mar 22 16:35:44 2011 +0900 |
tree | a76c58a8cd68eb2a745b5b8928a4659a4fb56af1 | |
parent | 1e93f390e56d82c4fcf684c86a45e1c593dc4b28 [diff] [blame] |
video: add missing framebuffer_release in error path 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>
diff --git a/drivers/video/tcx.c b/drivers/video/tcx.c index 855b719..07c66e9 100644 --- a/drivers/video/tcx.c +++ b/drivers/video/tcx.c
@@ -480,6 +480,7 @@ out_unmap_regs: tcx_unmap_regs(op, info, par); + framebuffer_release(info); out_err: return err;