summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-10-12 05:07:53 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-10-12 05:07:53 -0700
commit1fe630ed29f0774398fcaec34c5a7488dfd762ad (patch)
tree91d20a055f39598699ffdba0d1cadd19972fc3d2
parentbc77e3808a317324ec0182a6651ae047f9fd2a94 (diff)
parenta0a1d6f10f1dde530b356037bf2b03a376a2dfbe (diff)
Merge "media: v4l2-compat-ioctl32: memset stack union in compat ioctl"
-rw-r--r--drivers/media/v4l2-core/v4l2-compat-ioctl32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c
index 2f1c03783414..9db0dac938d3 100644
--- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c
+++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c
@@ -879,6 +879,7 @@ static long do_video_ioctl(struct file *file, unsigned int cmd, unsigned long ar
int compatible_arg = 1;
long err = 0;
+ memset(&karg, 0, sizeof(karg));
/* First, convert the command. */
switch (cmd) {
case VIDIOC_G_FMT32: cmd = VIDIOC_G_FMT; break;