Эх сурвалжийг харах

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 <[email protected]>
Armaan Siddiqui 3 жил өмнө
parent
commit
950ff0bdd3

+ 2 - 2
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -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) +