aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zoran_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/zoran_driver.c')
-rw-r--r--drivers/media/video/zoran_driver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c
index 15283f44e79f..485553be190b 100644
--- a/drivers/media/video/zoran_driver.c
+++ b/drivers/media/video/zoran_driver.c
@@ -1345,7 +1345,7 @@ zoran_open (struct inode *inode,
1345 ZR_DEVNAME(zr), current->comm, current->pid, zr->user); 1345 ZR_DEVNAME(zr), current->comm, current->pid, zr->user);
1346 1346
1347 /* now, create the open()-specific file_ops struct */ 1347 /* now, create the open()-specific file_ops struct */
1348 fh = kmalloc(sizeof(struct zoran_fh), GFP_KERNEL); 1348 fh = kzalloc(sizeof(struct zoran_fh), GFP_KERNEL);
1349 if (!fh) { 1349 if (!fh) {
1350 dprintk(1, 1350 dprintk(1,
1351 KERN_ERR 1351 KERN_ERR
@@ -1354,7 +1354,6 @@ zoran_open (struct inode *inode,
1354 res = -ENOMEM; 1354 res = -ENOMEM;
1355 goto open_unlock_and_return; 1355 goto open_unlock_and_return;
1356 } 1356 }
1357 memset(fh, 0, sizeof(struct zoran_fh));
1358 /* used to be BUZ_MAX_WIDTH/HEIGHT, but that gives overflows 1357 /* used to be BUZ_MAX_WIDTH/HEIGHT, but that gives overflows
1359 * on norm-change! */ 1358 * on norm-change! */
1360 fh->overlay_mask = 1359 fh->overlay_mask =