Browse Source

msm: camera: isp: Fix page fault dump for first request

In case of page fault for first request, page fault
information is not dumped since we are not initializing
member variable in case of init request.

CRs-Fixed: 2498880
Change-Id: Ie9ecda7434028e396392f3ac905ae80ae6ad6376
Signed-off-by: Prakasha Nayak <[email protected]>
Prakasha Nayak 5 years ago
parent
commit
2d76f42380
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/cam_isp/cam_isp_context.c

+ 3 - 0
drivers/cam_isp/cam_isp_context.c

@@ -294,6 +294,9 @@ static int __cam_isp_ctx_enqueue_init_request(
 				req_isp_new->num_cfg);
 			req_isp_old->num_cfg += req_isp_new->num_cfg;
 
+			memcpy(&req_old->pf_data, &req->pf_data,
+				sizeof(struct cam_hw_mgr_dump_pf_data));
+
 			req_old->request_id = req->request_id;
 
 			list_add_tail(&req->list, &ctx->free_req_list);