vfb: fix memory leaks in removal path
We were leaking the cmap memory. Signed-off-by: Andres Salomon <dilinger@debian.org> Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
07b39b49b4
Коммит
5e266e2e0e
|
@ -543,6 +543,7 @@ static int vfb_remove(struct platform_device *dev)
|
|||
if (info) {
|
||||
unregister_framebuffer(info);
|
||||
rvfree(videomemory, videomemorysize);
|
||||
fb_dealloc_cmap(&info->cmap);
|
||||
framebuffer_release(info);
|
||||
}
|
||||
return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче