camera: fix struct v4l2_mbus_framefmt have not initiation
authorddl <ddl@rock-chips.com>
Thu, 15 Nov 2012 03:51:45 +0000 (11:51 +0800)
committerddl <ddl@rock-chips.com>
Thu, 15 Nov 2012 03:52:06 +0000 (11:52 +0800)
drivers/media/video/rk30_camera_oneframe.c

index d8ad2d80d4975f849c453f5465905ca1708143ee..cd9f1b503e663c4fbe5a83adc10f989cdd35f4c1 100755 (executable)
@@ -2202,6 +2202,7 @@ static int rk_camera_try_fmt(struct soc_camera_device *icd,
                return pix->bytesperline;
 
     /* limit to sensor capabilities */
+    memset(&mf,0x00,sizeof(struct v4l2_mbus_framefmt));
        mf.width        = pix->width;
        mf.height       = pix->height;
        mf.field        = pix->field;