From: ddl Date: Thu, 15 Nov 2012 03:51:45 +0000 (+0800) Subject: camera: fix struct v4l2_mbus_framefmt have not initiation X-Git-Tag: firefly_0821_release~8218 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=af68afbbaeba1734ec4cf31d14a6ec95cb8d3762;p=firefly-linux-kernel-4.4.55.git camera: fix struct v4l2_mbus_framefmt have not initiation --- diff --git a/drivers/media/video/rk30_camera_oneframe.c b/drivers/media/video/rk30_camera_oneframe.c index d8ad2d80d497..cd9f1b503e66 100755 --- a/drivers/media/video/rk30_camera_oneframe.c +++ b/drivers/media/video/rk30_camera_oneframe.c @@ -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;