Browse Source

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 <[email protected]>
Vishalsingh Hajeri 5 years ago
parent
commit
68846d2555
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/cam_isp/cam_isp_context.c

+ 1 - 1
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);