diff options
Diffstat (limited to 'drivers/media/video/planb.c')
-rw-r--r-- | drivers/media/video/planb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/planb.c b/drivers/media/video/planb.c index 1455a8f4e930..4ab1af74a970 100644 --- a/drivers/media/video/planb.c +++ b/drivers/media/video/planb.c | |||
@@ -353,9 +353,8 @@ static int planb_prepare_open(struct planb *pb) | |||
353 | * PLANB_DUMMY)*sizeof(struct dbdma_cmd) | 353 | * PLANB_DUMMY)*sizeof(struct dbdma_cmd) |
354 | +(PLANB_MAXLINES*((PLANB_MAXPIXELS+7)& ~7))/8 | 354 | +(PLANB_MAXLINES*((PLANB_MAXPIXELS+7)& ~7))/8 |
355 | +MAX_GBUFFERS*sizeof(unsigned int); | 355 | +MAX_GBUFFERS*sizeof(unsigned int); |
356 | if ((pb->priv_space = kmalloc (size, GFP_KERNEL)) == 0) | 356 | if ((pb->priv_space = kzalloc (size, GFP_KERNEL)) == 0) |
357 | return -ENOMEM; | 357 | return -ENOMEM; |
358 | memset ((void *) pb->priv_space, 0, size); | ||
359 | pb->overlay_last1 = pb->ch1_cmd = (volatile struct dbdma_cmd *) | 358 | pb->overlay_last1 = pb->ch1_cmd = (volatile struct dbdma_cmd *) |
360 | DBDMA_ALIGN (pb->priv_space); | 359 | DBDMA_ALIGN (pb->priv_space); |
361 | pb->overlay_last2 = pb->ch2_cmd = pb->ch1_cmd + pb->tab_size; | 360 | pb->overlay_last2 = pb->ch2_cmd = pb->ch1_cmd + pb->tab_size; |