MLK-20370 IPU: mxc_vout: fix the potential uninitalized variable usage
authorOliver Brown <oliver.brown@nxp.com>
Fri, 22 Mar 2019 18:25:58 +0000 (13:25 -0500)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:31 +0000 (11:35 +0300)
Fix Covertity CID 18110 Uninitialized scalar variable

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
(cherry picked from commit 0f2a05c5cef95dabdbdd1e78531cd42aec24876a)
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 66e74fc3d5adad10766adf08a73109da064945e9)

drivers/media/platform/mxc/output/mxc_vout.c

index 8759f61..cba7642 100644 (file)
@@ -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++) {