summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-09-29 22:09:45 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-04 10:20:57 +0200
commit5bdea6060618cfcf1459dca137e89aee038ac8b9 (patch)
tree96fa01a06e8c5daa2a93ba72bd1adfc8f046738c /init
parent5dcaa1fcea1bfc15c0a93c9b0c6afe655fa577f0 (diff)
Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc
In fbtft_framebuffer_alloc the error handling path should take care of releasing frame buffer after it is allocated via framebuffer_alloc, too. Therefore, in two failure cases the goto destination is changed to address this issue. Fixes: c296d5f9957c ("staging: fbtft: core support") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@gmail.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20190930030949.28615-1-navid.emamdoost@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions