From: Andres Salomon Date: Tue, 31 Mar 2009 22:25:22 +0000 (-0700) Subject: vfb: fix memory leaks in removal path X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5e266e2e0e19532c1b8e2e2bff1eb6ccf42e478a;p=linux-2.6-omap-h63xx.git vfb: fix memory leaks in removal path We were leaking the cmap memory. Signed-off-by: Andres Salomon Acked-by: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/vfb.c b/drivers/video/vfb.c index 93fe08d6c78..cc919ae4657 100644 --- a/drivers/video/vfb.c +++ b/drivers/video/vfb.c @@ -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;