summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2014-06-18 19:31:27 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-26 12:27:33 -0300
commitaecfa5af1e2e282404fc56285d494701ed040a5d (patch)
tree04dacf24ec17f897db411b45248aacb4e6886a56 /drivers/staging
parent3ab25123373270152a9fae98e3c48ef1b2a878c0 (diff)
downloadblackbird-op-linux-aecfa5af1e2e282404fc56285d494701ed040a5d.tar.gz
blackbird-op-linux-aecfa5af1e2e282404fc56285d494701ed040a5d.zip
[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: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/omap4iss/iss_csi2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/omap4iss/iss_csi2.c b/drivers/staging/media/omap4iss/iss_csi2.c
index bf8a65726107..9ae4871928d8 100644
--- a/drivers/staging/media/omap4iss/iss_csi2.c
+++ b/drivers/staging/media/omap4iss/iss_csi2.c
@@ -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)
OpenPOWER on IntegriCloud