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

Commit 5d351251 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] v4l2-ioctl: clear the reserved field of v4l2_create_buffers



This field was never cleared by the kernel making future extensions
hard to implement. Clear it now.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent afeef4ee
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1805,6 +1805,8 @@ static int v4l_create_bufs(const struct v4l2_ioctl_ops *ops,
	if (ret)
		return ret;

	CLEAR_AFTER_FIELD(create, format);

	v4l_sanitize_format(&create->format);

	ret = ops->vidioc_create_bufs(file, fh, create);