summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-08-06 18:05:35 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-08-06 18:05:35 -0300
commit95c10b6b712386c35e98954d9c87a647dc5bd7f2 (patch)
tree1c40e3632d894ac5610451f70e1d29781f797d5b /linux/drivers
parent315ead7457e2fa04aaabfb5b1fda36a5a725c461 (diff)
downloadmediapointer-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.c2
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;