From 24c71ea45d029ae6f9e5695a0937ff1a0a9dbddf Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Fri, 7 Aug 2020 10:09:49 -0700 Subject: [PATCH] msm: camera: isp: Fix frame header alignment issue Update frame header iova correctly so that it's 16 byte aligned. CRs-Fixed: 2751309 Change-Id: I4af0eb5f12bcd92ba40077d9d62a9e308fa06f8d Signed-off-by: Karthik Anantha Ram --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c41af53f91e6..ec4f65aee4e7 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 @@ -6111,7 +6111,7 @@ static int cam_ife_mgr_util_insert_frame_header( /* frame header address needs to be 16 byte aligned */ if (frame_header_iova % 16) { padded_bytes = (uint32_t)(16 - (frame_header_iova % 16)); - iova_addr += padded_bytes; + frame_header_iova += padded_bytes; } prepare_hw_data->frame_header_iova = frame_header_iova;