From: Marco La Porta Date: Wed, 11 Feb 2009 21:04:20 +0000 (-0800) Subject: lxfb: properly alloc cmap in all cases and don't leak the memory X-Git-Tag: v2.6.29-rc5~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067f1293cc5916f8d88b602beeb8787d58515608;p=pandora-kernel.git lxfb: properly alloc cmap in all cases and don't leak the memory We weren't properly allocating the cmap for depths greater than 8bpp, which caused pain for things like DirectFB. Also, we never freed the cmap memory upon module unload.. [dilinger@debian.org: dropped unnecessary code and clean up patch] [dilinger@debian.org: add error checking and handling] Signed-off-by: Andres Salomon Cc: Jordan Crouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed