aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zr36016.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/zr36016.c')
-rw-r--r--drivers/media/video/zr36016.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/zr36016.c b/drivers/media/video/zr36016.c
index 4ed898585c70..10130ef67ea7 100644
--- a/drivers/media/video/zr36016.c
+++ b/drivers/media/video/zr36016.c
@@ -451,12 +451,11 @@ zr36016_setup (struct videocodec *codec)
451 return -ENOSPC; 451 return -ENOSPC;
452 } 452 }
453 //mem structure init 453 //mem structure init
454 codec->data = ptr = kmalloc(sizeof(struct zr36016), GFP_KERNEL); 454 codec->data = ptr = kzalloc(sizeof(struct zr36016), GFP_KERNEL);
455 if (NULL == ptr) { 455 if (NULL == ptr) {
456 dprintk(1, KERN_ERR "zr36016: Can't get enough memory!\n"); 456 dprintk(1, KERN_ERR "zr36016: Can't get enough memory!\n");
457 return -ENOMEM; 457 return -ENOMEM;
458 } 458 }
459 memset(ptr, 0, sizeof(struct zr36016));
460 459
461 snprintf(ptr->name, sizeof(ptr->name), "zr36016[%d]", 460 snprintf(ptr->name, sizeof(ptr->name), "zr36016[%d]",
462 zr36016_codecs); 461 zr36016_codecs);