aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/riva
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/riva')
-rw-r--r--drivers/video/riva/fbdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
index 7c19b5c2a541..9316905e027a 100644
--- a/drivers/video/riva/fbdev.c
+++ b/drivers/video/riva/fbdev.c
@@ -1984,12 +1984,11 @@ static int __devinit rivafb_probe(struct pci_dev *pd,
1984 default_par = info->par; 1984 default_par = info->par;
1985 default_par->pdev = pd; 1985 default_par->pdev = pd;
1986 1986
1987 info->pixmap.addr = kmalloc(8 * 1024, GFP_KERNEL); 1987 info->pixmap.addr = kzalloc(8 * 1024, GFP_KERNEL);
1988 if (info->pixmap.addr == NULL) { 1988 if (info->pixmap.addr == NULL) {
1989 ret = -ENOMEM; 1989 ret = -ENOMEM;
1990 goto err_framebuffer_release; 1990 goto err_framebuffer_release;
1991 } 1991 }
1992 memset(info->pixmap.addr, 0, 8 * 1024);
1993 1992
1994 ret = pci_enable_device(pd); 1993 ret = pci_enable_device(pd);
1995 if (ret < 0) { 1994 if (ret < 0) {