“fb4730672dc0a0f9b1c93a347f0fc421587eeb4e”上不存在“paddle/phi/ops/compat/multi_dot_sig.cc”
提交 8509a29e 编写于 作者: M Mariusz Kozlowski 提交者: Mauro Carvalho Chehab

V4L/DVB (5983): Arv.c: fix memset in ioctl

Looks like memset() is zeroing wrong nr of bytes.
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 473c653f
...@@ -441,7 +441,7 @@ static int ar_do_ioctl(struct inode *inode, struct file *file, ...@@ -441,7 +441,7 @@ static int ar_do_ioctl(struct inode *inode, struct file *file,
{ {
struct video_window *w = arg; struct video_window *w = arg;
DEBUG(1, "VIDIOCGWIN:\n"); DEBUG(1, "VIDIOCGWIN:\n");
memset(w, 0, sizeof(w)); memset(w, 0, sizeof(*w));
w->width = ar->width; w->width = ar->width;
w->height = ar->height; w->height = ar->height;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册