mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00: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) {
|
||||
unregister_framebuffer(info);
|
||||
rvfree(videomemory, videomemorysize);
|
||||
fb_dealloc_cmap(&info->cmap);
|
||||
framebuffer_release(info);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user