forked from luck/tmp_suning_uos_patched
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