diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-07-17 07:05:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:12 -0400 |
commit | eb3daa83c2f63743fb7597f620beac75e1ba5633 (patch) | |
tree | be59200d2ed567f6ac0a0e7dc1369b0ee67c8db6 /drivers/video | |
parent | 9965f5b137f11a7dce01b2c32874a4875f024306 (diff) |
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 <adaplas@gmail.com>
Acked-by: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tgafb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c index 5c0dab628099..89facb73edfc 100644 --- a/drivers/video/tgafb.c +++ b/drivers/video/tgafb.c | |||
@@ -1634,7 +1634,7 @@ tgafb_register(struct device *dev) | |||
1634 | FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT; | 1634 | FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT; |
1635 | info->fbops = &tgafb_ops; | 1635 | info->fbops = &tgafb_ops; |
1636 | info->screen_base = par->tga_fb_base; | 1636 | info->screen_base = par->tga_fb_base; |
1637 | info->pseudo_palette = (void *)(par + 1); | 1637 | info->pseudo_palette = par->palette; |
1638 | 1638 | ||
1639 | /* This should give a reasonable default video mode. */ | 1639 | /* This should give a reasonable default video mode. */ |
1640 | if (tga_bus_pci) { | 1640 | if (tga_bus_pci) { |