aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index 49278537eec4..7a332b3efe51 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -3072,6 +3072,8 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file,
3072 V4L2_MEMORY_MMAP); 3072 V4L2_MEMORY_MMAP);
3073 if (retval < 0) 3073 if (retval < 0)
3074 goto fh_unlock_and_return; 3074 goto fh_unlock_and_return;
3075
3076 gbuffers = retval;
3075 memset(mbuf,0,sizeof(*mbuf)); 3077 memset(mbuf,0,sizeof(*mbuf));
3076 mbuf->frames = gbuffers; 3078 mbuf->frames = gbuffers;
3077 mbuf->size = gbuffers * gbufsize; 3079 mbuf->size = gbuffers * gbufsize;