mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
vfb: fix memory leaks in removal path
We were leaking the cmap memory. Signed-off-by: Andres Salomon <[email protected]> Acked-by: Krzysztof Helt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
07b39b49b4
commit
5e266e2e0e
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user