You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07: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:
committed by
Linus Torvalds
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user