]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitdf79093d0ae64620f9b9f2e487e06540b398c132
tree4e3b04e3aabe5bf5106fe04913ad7b75525d7de4
parent0c07f236bd6289ae6714053b82c91953d74d7a80
[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