diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-06 18:05:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-06 18:05:35 -0300 |
commit | 95c10b6b712386c35e98954d9c87a647dc5bd7f2 (patch) | |
tree | 1c40e3632d894ac5610451f70e1d29781f797d5b /linux/drivers | |
parent | 315ead7457e2fa04aaabfb5b1fda36a5a725c461 (diff) | |
download | mediapointer-dvb-s2-95c10b6b712386c35e98954d9c87a647dc5bd7f2.tar.gz mediapointer-dvb-s2-95c10b6b712386c35e98954d9c87a647dc5bd7f2.tar.bz2 |
Dev.c: memset fix
From: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Hello,
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 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/videodev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index 61c59ac41..7bf527c59 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -471,7 +471,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; |