mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
1e93f390e5
commit
6359691d7e
3 changed files with 3 additions and 0 deletions
|
|
@ -565,6 +565,7 @@ out_dealloc_cmap:
|
|||
|
||||
out_unmap_regs:
|
||||
cg14_unmap_regs(op, info, par);
|
||||
framebuffer_release(info);
|
||||
|
||||
out_err:
|
||||
return err;
|
||||
|
|
|
|||
|
|
@ -821,6 +821,7 @@ out_dealloc_cmap:
|
|||
|
||||
out_unmap_regs:
|
||||
cg6_unmap_regs(op, info, par);
|
||||
framebuffer_release(info);
|
||||
|
||||
out_err:
|
||||
return err;
|
||||
|
|
|
|||
|
|
@ -480,6 +480,7 @@ out_dealloc_cmap:
|
|||
|
||||
out_unmap_regs:
|
||||
tcx_unmap_regs(op, info, par);
|
||||
framebuffer_release(info);
|
||||
|
||||
out_err:
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue