forked from Minki/linux
[media] coda: properly clear f_cap in coda_s_fmt_vid_out
Properly zero the structure on the stack before using it. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
5f9826e8a7
commit
1c2f6a9983
@ -674,6 +674,7 @@ static int coda_s_fmt_vid_out(struct file *file, void *priv,
|
||||
|
||||
ctx->colorspace = f->fmt.pix.colorspace;
|
||||
|
||||
memset(&f_cap, 0, sizeof(f_cap));
|
||||
f_cap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
||||
coda_g_fmt(file, priv, &f_cap);
|
||||
f_cap.fmt.pix.width = f->fmt.pix.width;
|
||||
|
Loading…
Reference in New Issue
Block a user