From 475735e7ac5cd217d94e3c284dcd28b4c6e7c37a Mon Sep 17 00:00:00 2001 From: Amir Levy Date: Thu, 14 Jul 2016 09:29:20 +0300 Subject: [PATCH] msm: ipa3: don't check offset_entry when using DDR address Checking offset_entry is not necessary when using DDR addresses. Check offset_entry only when using header tables. CRs-fixed: 1041515 Change-Id: I4b3e44bda6ee05932a7de66e1e7cea300936f982 Signed-off-by: Amir Levy --- drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c index a702a2e52e39..4f6097c6da35 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c @@ -1213,7 +1213,8 @@ int ipahal_cp_proc_ctx_to_hw_buff(enum ipa_hdr_proc_type type, if (!base || !hdr_len || (!phys_base && !hdr_base_addr) || - !hdr_base_addr || !offset_entry) { + !hdr_base_addr || + ((is_hdr_proc_ctx == false) && !offset_entry)) { IPAHAL_ERR("failed on validating params"); return -EINVAL; }