Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22f76842 authored by Amir Levy's avatar Amir Levy Committed by Kyle Yan
Browse files

msm: ipa3: fix condition tested on ipahal wrapper



offset_entry parameter should be tested for NULL, invert
testing logic.

CRs-Fixed: 1028328
Change-Id: I52761b04c594b10202a3823d49324a4991ecf3e4
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent edd0183c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1212,7 +1212,7 @@ 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 || !offset_entry) {
		IPAHAL_ERR("failed on validating params");
		return -EINVAL;
	}