diff options
Diffstat (limited to 'drivers/video/nvidia/nvidia.c')
-rw-r--r-- | drivers/video/nvidia/nvidia.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index 538e947610e1..f6731dadff3a 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c | |||
@@ -1205,13 +1205,11 @@ static int __devinit nvidiafb_probe(struct pci_dev *pd, | |||
1205 | par = info->par; | 1205 | par = info->par; |
1206 | par->pci_dev = pd; | 1206 | par->pci_dev = pd; |
1207 | 1207 | ||
1208 | info->pixmap.addr = kmalloc(8 * 1024, GFP_KERNEL); | 1208 | info->pixmap.addr = kzalloc(8 * 1024, GFP_KERNEL); |
1209 | 1209 | ||
1210 | if (info->pixmap.addr == NULL) | 1210 | if (info->pixmap.addr == NULL) |
1211 | goto err_out_kfree; | 1211 | goto err_out_kfree; |
1212 | 1212 | ||
1213 | memset(info->pixmap.addr, 0, 8 * 1024); | ||
1214 | |||
1215 | if (pci_enable_device(pd)) { | 1213 | if (pci_enable_device(pd)) { |
1216 | printk(KERN_ERR PFX "cannot enable PCI device\n"); | 1214 | printk(KERN_ERR PFX "cannot enable PCI device\n"); |
1217 | goto err_out_enable; | 1215 | goto err_out_enable; |