]> git.baikalelectronics.ru Git - kernel.git/commit
[TCPv6] MD5SIG: Ensure to reset allocation count to avoid panic.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 24 Jul 2007 22:27:30 +0000 (15:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2007 22:27:30 +0000 (15:27 -0700)
commit6c74fb0775be29cdb84e04afa12bcef4bdbc881b
treedb9ebcec76d7b44c4e4e77720144a80a87371f91
parent1f8f25fb874328b7f0c143d1d455d191fac4cb5c
[TCPv6] MD5SIG: Ensure to reset allocation count to avoid panic.

After clearing all passwords for IPv6 peers, we need to
set allocation count to zero as well as we free the storage.
Otherwise, we panic when a user trys to (re)add a password.

Discovered and fixed by MIYAJIMA Mitsuharu <miyajima.mitsuharu@anchor.jp>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c