[PATCH] fbdev: asiliantfb: Driver cleanups
- 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>
This commit is contained in:
parent
f4a41836f1
commit
2a9f617026
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue