diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-08-06 18:05:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 22:04:39 -0300 |
commit | 473c653fff8dc6a63cad279a8e83395ead12119d (patch) | |
tree | 74e8533bf2782486616340cea72221f3fcd07a8f /drivers/media/video/videodev.c | |
parent | 5e76a1cb2ce0918ff2429fcfa2d5655dbd273c54 (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.c | 2 |
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, if (cmd == VIDIOCGMBUF) { struct video_mbuf *p=arg; - memset(p,0,sizeof(p)); + memset(p, 0, sizeof(*p)); if (!vfd->vidiocgmbuf) return ret; |