aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-06 17:05:35 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:04:39 -0400
commit473c653fff8dc6a63cad279a8e83395ead12119d (patch)
tree74e8533bf2782486616340cea72221f3fcd07a8f /drivers/media/video/videodev.c
parent5e76a1cb2ce0918ff2429fcfa2d5655dbd273c54 (diff)
V4L/DVB (5982): Dev.c: memset fix
Looks like memset() is zeroing wrong nr of bytes. Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videodev.c')
-rw-r--r--drivers/media/video/videodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index b876aca69c73..0334b9aaf12a 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -448,7 +448,7 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
448 if (cmd == VIDIOCGMBUF) { 448 if (cmd == VIDIOCGMBUF) {
449 struct video_mbuf *p=arg; 449 struct video_mbuf *p=arg;
450 450
451 memset(p,0,sizeof(p)); 451 memset(p, 0, sizeof(*p));
452 452
453 if (!vfd->vidiocgmbuf) 453 if (!vfd->vidiocgmbuf)
454 return ret; 454 return ret;