From: Hans Verkuil <hans.verk...@cisco.com>

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

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
---
 drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c 
b/drivers/media/v4l2-core/v4l2-ioctl.c
index 368bc3a..8ffc89a 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -1804,6 +1804,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);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to