[DCCP] ccid3: Divide by zero fix
authorIan McDonald <imcdnzl@gmail.com>
Sat, 4 Mar 2006 01:54:46 +0000 (17:54 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 5 Mar 2006 05:06:29 +0000 (21:06 -0800)
commitc09966608da7e8cad3468e925ac9062e44fee831
tree4e3b04e3aabe5bf5106fe04913ad7b75525d7de4
parentc027f5f995d8b6efc934be384085e3e8425638e4
[DCCP] ccid3: Divide by zero fix

In rare circumstances 0 is returned by dccp_li_hist_calc_i_mean which
leads to a divide by zero in ccid3_hc_rx_packet_recv. Explicitly check
for zero return now. Update copyright notice at same time.

Found by Arnaldo.

Signed-off-by: Ian McDonald <imcdnzl@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ccids/ccid3.c