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

Commit 98411990 authored by Conner Huff's avatar Conner Huff
Browse files

rmnet_perf: Cast expected packets for dlhdr



Fixes issue which was caused by modem over
reporting the number of packets that a burst
contains. This resulted in bootup sending
packets which tainted the number of expected
packets since it was being interpreted as an
large unsigned int instead of a a small
negative number.

Change-Id: I31ec6265d6cb684c63fb12916a5ef073fa3c9605
Singed-off-by: default avatarConner Huff <chuff@codeaurora.org>
parent 850d6006
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -669,7 +669,7 @@ void rmnet_perf_core_deaggregate(struct sk_buff *skb,
	 * then we can flush everything
	 */
	if (!rmnet_perf_core_bm_flush_on ||
	    perf->core_meta->bm_state->expect_packets <= 0) {
	    (int) perf->core_meta->bm_state->expect_packets <= 0) {
		rmnet_perf_tcp_opt_flush_all_flow_nodes(perf);
		rmnet_perf_core_free_held_skbs(perf);
		rmnet_perf_core_flush_reason_cnt[