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

Commit b312e5f3 authored by Chaitanya Pratapa's avatar Chaitanya Pratapa Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Fix removing the length check



When packet is sent with size greater than aggregation
size, packet is split into multiple SKB's. The status packet
contains the actual payload length. Make a change to skip
the length check.

Change-Id: I6b752f832d54b1038291c83375322402669aa309
Signed-off-by: default avatarChaitanya Pratapa <cpratapa@codeaurora.org>
parent f5f31790
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2836,8 +2836,7 @@ static int ipa3_wan_rx_pyld_hdlr(struct sk_buff *skb,

		IPA_STATS_INC_CNT(ipa3_ctx->stats.rx_pkts);
		if (status.endp_dest_idx >= ipa3_ctx->ipa_num_pipes ||
			status.endp_src_idx >= ipa3_ctx->ipa_num_pipes ||
			status.pkt_len > IPA_GENERIC_AGGR_BYTE_LIMIT * 1024) {
			status.endp_src_idx >= ipa3_ctx->ipa_num_pipes) {
			IPAERR("status fields invalid\n");
			WARN_ON(1);
			goto bail;