diff options
Diffstat (limited to 'drivers/video/i810/i810_main.c')
-rw-r--r-- | drivers/video/i810/i810_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c index e343c0da9618..29f89db428ce 100644 --- a/drivers/video/i810/i810_main.c +++ b/drivers/video/i810/i810_main.c | |||
@@ -2021,11 +2021,10 @@ static int __devinit i810fb_init_pci (struct pci_dev *dev, | |||
2021 | par = info->par; | 2021 | par = info->par; |
2022 | par->dev = dev; | 2022 | par->dev = dev; |
2023 | 2023 | ||
2024 | if (!(info->pixmap.addr = kmalloc(8*1024, GFP_KERNEL))) { | 2024 | if (!(info->pixmap.addr = kzalloc(8*1024, GFP_KERNEL))) { |
2025 | i810fb_release_resource(info, par); | 2025 | i810fb_release_resource(info, par); |
2026 | return -ENOMEM; | 2026 | return -ENOMEM; |
2027 | } | 2027 | } |
2028 | memset(info->pixmap.addr, 0, 8*1024); | ||
2029 | info->pixmap.size = 8*1024; | 2028 | info->pixmap.size = 8*1024; |
2030 | info->pixmap.buf_align = 8; | 2029 | info->pixmap.buf_align = 8; |
2031 | info->pixmap.access_align = 32; | 2030 | info->pixmap.access_align = 32; |