summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Brown <oliver.brown@nxp.com>2019-03-22 13:25:58 -0500
committerOliver Brown <oliver.brown@nxp.com>2019-03-23 13:37:33 -0500
commit5f9b64ed556c201841cccb87b02d559621451d9f (patch)
treeb3abb508aad60810ddbfcf49d908f6ea0322e573
parent26c7d9a9979318c433936a77a906b62dbd743733 (diff)
MLK-20370 IPU: mxc_vout: fix the potential uninitalized variable usage
Fix Covertity CID 18110 Uninitialized scalar variable Signed-off-by: Oliver Brown <oliver.brown@nxp.com> (cherry picked from commit 0f2a05c5cef95dabdbdd1e78531cd42aec24876a)
-rw-r--r--drivers/media/platform/mxc/output/mxc_vout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/mxc/output/mxc_vout.c b/drivers/media/platform/mxc/output/mxc_vout.c
index b557efd2e479..c1d8a8f03255 100644
--- a/drivers/media/platform/mxc/output/mxc_vout.c
+++ b/drivers/media/platform/mxc/output/mxc_vout.c
@@ -321,7 +321,7 @@ static void update_display_setting(void)
{
int i;
struct fb_info *fbi;
- struct v4l2_rect bg_crop_bounds[2];
+ struct v4l2_rect bg_crop_bounds[2] = { { 0, 0, 0, 0 }, { 0, 0, 0, 0} };
mutex_lock(&gfb_mutex);
for (i = 0; i < num_registered_fb; i++) {