]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
[media] tc358743: zero the reserved array
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 22 Mar 2016 09:59:02 +0000 (06:59 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 20 Apr 2016 19:03:33 +0000 (16:03 -0300)
v4l2-compliance complained about this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/tc358743.c

index 972e0d47259d2a8d02c045e5373eabc4385f1235..73e0cef0ea610a9439c5b042ee9bd4348797127f 100644 (file)
@@ -1551,6 +1551,8 @@ static int tc358743_g_edid(struct v4l2_subdev *sd,
 {
        struct tc358743_state *state = to_state(sd);
 
+       memset(edid->reserved, 0, sizeof(edid->reserved));
+
        if (edid->pad != 0)
                return -EINVAL;
 
@@ -1585,6 +1587,8 @@ static int tc358743_s_edid(struct v4l2_subdev *sd,
        v4l2_dbg(2, debug, sd, "%s, pad %d, start block %d, blocks %d\n",
                 __func__, edid->pad, edid->start_block, edid->blocks);
 
+       memset(edid->reserved, 0, sizeof(edid->reserved));
+
        if (edid->pad != 0)
                return -EINVAL;