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>
This commit is contained in:
Mariusz Kozlowski 2007-08-06 18:05:35 -03:00 committed by Mauro Carvalho Chehab
parent 5e76a1cb2c
commit 473c653fff

View File

@ -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;