diff options
author | Marco La Porta <marco-laporta@tiscali.it> | 2009-02-12 00:04:20 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-12 01:25:34 +0300 |
commit | 067f1293cc5916f8d88b602beeb8787d58515608 (patch) | |
tree | 1077d6997716b33ab203ff206e5b7df09ed57d70 /drivers/video/fm2fb.c | |
parent | 57f63bc8fe79e6598e7253f10f53f58c9fdc57be (diff) | |
download | linux-067f1293cc5916f8d88b602beeb8787d58515608.tar.xz |
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 <dilinger@debian.org>
Cc: Jordan Crouse <jordan@cosmicpenguin.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/fm2fb.c')
0 files changed, 0 insertions, 0 deletions