tgafb: fix cmap memory leak
commit327fc8752a3c08fc7dc7d382883e65aad2f03bde
authorAndres Salomon <dilinger@queued.net>
Tue, 31 Mar 2009 22:25:28 +0000 (31 15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:31 +0000 (1 08:59 -0700)
tree549c61e2cf053c6e59ebdb878c6337173dfa179f
parentcc880a715782fe31116284d90e0b5bfb1411535b
tgafb: fix cmap memory leak

Fix cmap leak when register_framebuffer fails.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Acked-by: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/tgafb.c