sctp: fix memory leak of the ASCONF queue when free asoc
commit696789e6e980e3f11860a34a57b4724d041f02ab
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 24 May 2011 21:48:02 +0000 (24 21:48 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:34:01 +0000 (3 10:34 +0900)
treef99b173b1375ed84919372cb4d2a076e3869832e
parent1003a81b92683e72019b8160ac59c7a2651a74e5
sctp: fix memory leak of the ASCONF queue when free asoc

[ Upstream commit 8b4472cc13136d04727e399c6fdadf58d2218b0a ]

If an ASCONF chunk is outstanding, then the following ASCONF
chunk will be queued for later transmission. But when we free
the asoc, we forget to free the ASCONF queue at the same time,
this will cause memory leak.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/associola.c