asiliantfb: fix cmap memory leaks
commit032220ba310204be9cb2ddbbf848020fadc63ce6
authorAndres Salomon <dilinger@debian.org>
Tue, 31 Mar 2009 22:25:33 +0000 (31 15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:32 +0000 (1 08:59 -0700)
tree8b32dd11705d0a31ce2c82ff547cff107939d0bd
parentba78289343226773b27dc25e7d1e739d0162b9e8
asiliantfb: fix cmap memory leaks

- fix cmap leak in removal path
 - fix cmap leak when register_framebuffer fails
 - check return value of fb_alloc_cmap
 - don't continue with driver setup if register_framebuffer fails

[krzysztof.h1@wp.pl: spotted missing iounmap]
[randy.dunlap@oracle.com: move data declaration before any code]
Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/asiliantfb.c