[SCTP]: Fix local_addr deletions during list traversals.
authorChidambar 'ilLogict' Zinnoury <illogict@online.fr>
Wed, 12 Mar 2008 01:05:02 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2008 01:05:02 +0000 (18:05 -0700)
commit22626216c46f2ec86287e75ea86dd9ac3df54265
treeee7fb381a17fb8105b7f2f8cd40cc4b587d064d0
parentb2211a361a4289c83971f89da53fe2eb9e72769d
[SCTP]: Fix local_addr deletions during list traversals.

Since the lists are circular, we need to explicitely tag
the address to be deleted since we might end up freeing
the list head instead.  This fixes some interesting SCTP
crashes.

Signed-off-by: Chidambar 'ilLogict' Zinnoury <illogict@online.fr>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/bind_addr.c
net/sctp/ipv6.c
net/sctp/protocol.c