mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 09:02:00 +00:00
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:
parent
5e76a1cb2c
commit
473c653fff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user