Skip to content

Commit

Permalink
[PATCH] fbdev: asiliantfb: Driver cleanups
Browse files Browse the repository at this point in the history
- allocate just enough space for the pseudo_palette

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jan 10, 2006
1 parent f4a4183 commit 2a9f617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/asiliantfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ asiliantfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
if (!request_mem_region(addr, size, "asiliantfb"))
return -EBUSY;

p = framebuffer_alloc(sizeof(u32) * 256, &dp->dev);
p = framebuffer_alloc(sizeof(u32) * 16, &dp->dev);
if (!p) {
release_mem_region(addr, size);
return -ENOMEM;
Expand Down

0 comments on commit 2a9f617

Please sign in to comment.