mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
tgafb: actually allocate memory for the pseudo_palette
No memory allocation was done for the pseudo_palette. Allocate one for it. Signed-off-by: Antonino Daplas <[email protected]> Acked-by: "Maciej W. Rozycki" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
9965f5b137
commit
eb3daa83c2
2 files changed
+2
-1
No files matched your search
@@ -1634,7 +1634,7 @@ tgafb_register(struct device *dev)
|
||||
FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT;
|
||||
info->fbops = &tgafb_ops;
|
||||
info->screen_base = par->tga_fb_base;
|
||||
info->pseudo_palette = (void *)(par + 1);
|
||||
info->pseudo_palette = par->palette;
|
||||
|
||||
/* This should give a reasonable default video mode. */
|
||||
if (tga_bus_pci) {
|
||||
|
||||
@@ -216,6 +216,7 @@ struct tga_par {
|
||||
u32 pll_freq; /* pixclock in mhz */
|
||||
u32 bits_per_pixel; /* bits per pixel */
|
||||
u32 sync_on_green; /* set if sync is on green */
|
||||
u32 palette[16];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user