mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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:
parent
07b39b49b4
commit
5e266e2e0e
|
|
@ -543,6 +543,7 @@ static int vfb_remove(struct platform_device *dev)
|
||||||
if (info) {
|
if (info) {
|
||||||
unregister_framebuffer(info);
|
unregister_framebuffer(info);
|
||||||
rvfree(videomemory, videomemorysize);
|
rvfree(videomemory, videomemorysize);
|
||||||
|
fb_dealloc_cmap(&info->cmap);
|
||||||
framebuffer_release(info);
|
framebuffer_release(info);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user