Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=551dc5f7a11cfb66685bfd36cbbdb209c5a11d14
Commit:     551dc5f7a11cfb66685bfd36cbbdb209c5a11d14
Parent:     371fe7779cad6557a58df9a1b5543652e067400f
Author:     Ian McDonald <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 20 14:46:52 2007 -0300
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:26:50 2007 -0700

    [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: Ian McDonald <[EMAIL PROTECTED]>
    Acked-by: Gerrit Renker <[EMAIL PROTECTED]>
    Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/dccp/ccids/lib/loss_interval.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/dccp/ccids/lib/loss_interval.c 
b/net/dccp/ccids/lib/loss_interval.c
index 0a0baef..372d7e7 100644
--- a/net/dccp/ccids/lib/loss_interval.c
+++ b/net/dccp/ccids/lib/loss_interval.c
@@ -91,7 +91,7 @@ u32 dccp_li_hist_calc_i_mean(struct list_head *list)
        u32 w_tot  = 0;
 
        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];
                        w_tot  += dccp_li_hist_w[i];
                        if (i != 0)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to