]> git.baikalelectronics.ru Git - kernel.git/commit
gx1fb: properly alloc cmap and plug cmap leak
authorAndres Salomon <dilinger@queued.net>
Wed, 11 Feb 2009 21:04:23 +0000 (13:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Feb 2009 22:25:34 +0000 (14:25 -0800)
commit45a36e1ea76d30e01810ce6386ad588b2a1e5435
treefd93c7df28ebcd6a398cdb80d8e66c468d0765fe
parent8b3681fc77e5b22fcc0abb59643d092815c19039
gx1fb: properly alloc cmap and plug cmap leak

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..

Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: Marco La Porta <marco-laporta@tiscali.it>
Cc: Jordan Crouse <jordan@cosmicpenguin.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/geode/gx1fb_core.c