Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8509a29e authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Mauro Carvalho Chehab
Browse files

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



Looks like memset() is zeroing wrong nr of bytes.

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 473c653f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ static int ar_do_ioctl(struct inode *inode, struct file *file,
	{
		struct video_window *w = arg;
		DEBUG(1, "VIDIOCGWIN:\n");
		memset(w, 0, sizeof(w));
		memset(w, 0, sizeof(*w));
		w->width = ar->width;
		w->height = ar->height;
		return 0;