sctp: fix potential reference of a freed pointer
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 28 Apr 2010 08:47:19 +0000 (08:47 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:57 +0000 (15:02 -0700)
commitc9d7c3032e4d5850c4e019c186336466aa429626
tree8bf6717ed9c1e617a6ec64018542c80541155cb5
parentfbcf931163be5f6c34cad7f00dc59ed83146e158
sctp: fix potential reference of a freed pointer

[ Upstream commit 0c42749cffbb4a06be86c5e5db6c7ebad548781f ]

When sctp attempts to update an assocition, it removes any
addresses that were not in the updated INITs.  However, the loop
may attempt to refrence a transport with address after removing it.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/associola.c