提交 551dc5f7 编写于 作者: I Ian McDonald 提交者: David S. Miller

[CCID3]: Fix use of invalid loss intervals

This fixes a bug which uses an invalid comparison.
The bug resulted in the use of invalid loss intervals.
Signed-off-by: NIan McDonald <ian.mcdonald@jandi.co.nz>
Acked-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 371fe777
...@@ -91,7 +91,7 @@ u32 dccp_li_hist_calc_i_mean(struct list_head *list) ...@@ -91,7 +91,7 @@ u32 dccp_li_hist_calc_i_mean(struct list_head *list)
u32 w_tot = 0; u32 w_tot = 0;
list_for_each_entry_safe(li_entry, li_next, list, dccplih_node) { list_for_each_entry_safe(li_entry, li_next, list, dccplih_node) {
if (li_entry->dccplih_interval != ~0) { if (li_entry->dccplih_interval != ~0U) {
i_tot0 += li_entry->dccplih_interval * dccp_li_hist_w[i]; i_tot0 += li_entry->dccplih_interval * dccp_li_hist_w[i];
w_tot += dccp_li_hist_w[i]; w_tot += dccp_li_hist_w[i];
if (i != 0) if (i != 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册