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 <gjindal@codeaurora.org>
This commit is contained in:
@@ -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_hw_intf *hw_intf = NULL;
|
||||||
struct cam_ife_hw_mgr *hw_mgr;
|
struct cam_ife_hw_mgr *hw_mgr;
|
||||||
struct cam_hw_mini_dump_args hw_dump_args;
|
struct cam_hw_mini_dump_args hw_dump_args;
|
||||||
unsigned long bytes_written = 0;
|
|
||||||
unsigned long remain_len = len;
|
unsigned long remain_len = len;
|
||||||
unsigned long dumped_len = 0;
|
unsigned long dumped_len = 0;
|
||||||
uint32_t i = 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;
|
goto end;
|
||||||
|
|
||||||
ctx_md->ctx_priv = hw_dump_args.start_addr;
|
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;
|
remain_len = len - dumped_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user