]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 26 Oct 2024 03:56:34 +0000 (11:56 +0800)
committerHelge Deller <deller@gmx.de>
Thu, 14 Nov 2024 14:26:27 +0000 (15:26 +0100)
commitf89d17ae2ac42931be2a0153fecbf8533280c927
treee3fc1273e27cb2d83305fb501f5e207c6647873a
parent2d5404caa8c7bb5c4e0435f94b28834ae5456623
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: 4a25e41831ee ("video: sh7760fb: SH7760/SH7763 LCDC framebuffer driver")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/sh7760fb.c