msm: ipa: Don't assert when packet size is large

Earlier IPA was asserting when received packet size
larger than expected, now instead of that we drop
the packet.

Change-Id: I677c59564aa667c93069b8dda370635332bc077c
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
This commit is contained in:
Armaan Siddiqui
2021-07-09 14:21:19 +05:30
parent b572606090
commit 950ff0bdd3

View File

@@ -3406,8 +3406,8 @@ begin:
status.endp_src_idx,
status.endp_dest_idx,
status.pkt_len);
/* Unexpected HW status */
ipa_assert();
sys->drop_packet = true;
dev_kfree_skb_any(skb2);
} else {
skb2->truesize = skb2->len +
sizeof(struct sk_buff) +