]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sctp: fix memory leak of the ASCONF queue when free asoc
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 24 May 2011 21:48:02 +0000 (21:48 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:31:56 +0000 (09:31 +0900)
commit5e29567e54ba77297911659047184b6d551e38e8
tree506aa262540e5e4f1c10e6afda46cba0076aa9e5
parent42923465fb8d025a2b5153f2e7ab1e6e1058bf00
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