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

Commit aecfa5af authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: omap4iss: configuration using uninitialized variable



Variable reg is not initialized.
Random values are written to OMAP4 ISS registers if !ctx->eof_enabled.

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 3ab25123
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -317,7 +317,7 @@ static void csi2_ctx_enable(struct iss_csi2_device *csi2, u8 ctxnum, u8 enable)
static void csi2_ctx_config(struct iss_csi2_device *csi2,
			    struct iss_csi2_ctx_cfg *ctx)
{
	u32 reg;
	u32 reg = 0;

	/* Set up CSI2_CTx_CTRL1 */
	if (ctx->eof_enabled)