Skip to content
Snippets Groups Projects
Commit f89d17ae authored by Zhen Lei's avatar Zhen Lei Committed by Helge Deller
Browse files

fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()


When information such as info->screen_base is not ready, calling
sh7760fb_free_mem() does not release memory correctly. Call
dma_free_coherent() instead.

Fixes: 4a25e418 ("video: sh7760fb: SH7760/SH7763 LCDC framebuffer driver")
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 2d5404ca
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment