aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx88/cx88-alsa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c
index 6c22ec4b0836..3956c257556c 100644
--- a/drivers/media/video/cx88/cx88-alsa.c
+++ b/drivers/media/video/cx88/cx88-alsa.c
@@ -414,11 +414,9 @@ static int snd_cx88_hw_params(struct snd_pcm_substream * substream,
414 414
415 dprintk(1,"Setting buffer\n"); 415 dprintk(1,"Setting buffer\n");
416 416
417 buf = kmalloc(sizeof(*buf),GFP_KERNEL); 417 buf = kzalloc(sizeof(*buf),GFP_KERNEL);
418 if (NULL == buf) 418 if (NULL == buf)
419 return -ENOMEM; 419 return -ENOMEM;
420 memset(buf,0,sizeof(*buf));
421
422 420
423 buf->vb.memory = V4L2_MEMORY_MMAP; 421 buf->vb.memory = V4L2_MEMORY_MMAP;
424 buf->vb.width = chip->period_size; 422 buf->vb.width = chip->period_size;