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

Commit 52385315 authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

msm:ipa3: Return if RT table size is 0



If RT table size is zero, retrun to prevent
further process.

Change-Id: Ic671b1760969e6a5f5e896f5334289061b02d256
Acked-by: default avatarPooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent f67e399a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -332,8 +332,8 @@ static int ipa_prep_rt_tbl_for_cmt(enum ipa_ip_type ip,

	if ((tbl->sz[IPA_RULE_HASHABLE] +
		tbl->sz[IPA_RULE_NON_HASHABLE]) == 0) {
		WARN_ON_RATELIMIT_IPA(1);
		IPAERR_RL("rt tbl %s is with zero total size\n", tbl->name);
		IPADBG("rt tbl %s is with zero total size\n", tbl->name);
		return 0;
	}

	hdr_width = ipahal_get_hw_tbl_hdr_width();