media: rockchip: isp: fix init format for struct no clean

Change-Id: I95d3ed7fdcab9347909d0c21bee6084a852ff878
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2022-04-11 15:32:24 +08:00
committed by Tao Huang
parent e9f7fb01ed
commit 554bc72503
2 changed files with 3 additions and 0 deletions

View File

@@ -394,6 +394,8 @@ static int _set_pipeline_default_fmt(struct rkisp_device *dev)
struct v4l2_subdev_selection sel;
u32 i, width, height, code;
memset(&sel, 0, sizeof(sel));
memset(&fmt, 0, sizeof(fmt));
isp = &dev->isp_sdev.sd;
if (dev->active_sensor)

View File

@@ -198,6 +198,7 @@ int rkisp_align_sensor_resolution(struct rkisp_device *dev,
if (!crop)
return -EINVAL;
memset(&sel, 0, sizeof(sel));
switch (dev->isp_ver) {
case ISP_V12:
w = clamp_t(u32, src_w,