From 68846d255520ee8e915862d13868e79016288762 Mon Sep 17 00:00:00 2001 From: Vishalsingh Hajeri Date: Wed, 22 Apr 2020 15:46:09 -0700 Subject: [PATCH] msm: camera: isp: Fix num_entries value assigned to variable num_cfg_new temp variable should be assigned the value of num_hw_entries from new isp request instead of old isp request. CRs-Fixed: 2673657 Change-Id: Ie4d29949e2c992560b6635f7e0b5db88c2dafd48 Signed-off-by: Vishalsingh Hajeri --- drivers/cam_isp/cam_isp_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index 2091399a6d..4b9c4a671f 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/drivers/cam_isp/cam_isp_context.c @@ -491,7 +491,7 @@ static int __cam_isp_ctx_enqueue_init_request( num_cfg_old = req_isp_old->cfg_info[i].num_hw_entries; num_cfg_new = - req_isp_old->cfg_info[i].num_hw_entries; + req_isp_new->cfg_info[i].num_hw_entries; memcpy(&cfg_old[num_cfg_old], cfg_new, sizeof(cfg_new[0]) * num_cfg_new);