From 03dedba5888e467cc0c1f052aced9fc515fc3255 Mon Sep 17 00:00:00 2001 From: Gaurav Jindal Date: Fri, 24 Sep 2021 18:09:15 +0530 Subject: [PATCH] msm: camera: common: Update bytes written variable While dumping minidump information, bytes updated are wrongly updated. This commit corrects that condition. CRs-Fixed: 3044173 Change-Id: I5a6ac915118424b6ec3a2e64726786ed0e47c9c7 Signed-off-by: Gaurav Jindal --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c index 2ac98808ca..7ddfd53c8b 100644 --- a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +++ b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c @@ -12268,7 +12268,6 @@ static unsigned long cam_ife_hw_mgr_mini_dump_cb(void *dst, unsigned long len) struct cam_hw_intf *hw_intf = NULL; struct cam_ife_hw_mgr *hw_mgr; struct cam_hw_mini_dump_args hw_dump_args; - unsigned long bytes_written = 0; unsigned long remain_len = len; unsigned long dumped_len = 0; uint32_t i = 0; @@ -12361,7 +12360,7 @@ static unsigned long cam_ife_hw_mgr_mini_dump_cb(void *dst, unsigned long len) goto end; ctx_md->ctx_priv = hw_dump_args.start_addr; - dumped_len += bytes_written; + dumped_len += hw_dump_args.bytes_written; remain_len = len - dumped_len; }