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)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:58 +0000 (12:20 -0500)
commit671c8db9af8d51479b76f8e072c427d8196e74d1
treeb2eedfbbbf239da3980be80427f48e03961e69fe
parentb0afbe7402f8f71d96d3ad9acaefba8e3de390b9
sctp: fix memory leak of the ASCONF queue when free asoc

BugLink: http://bugs.launchpad.net/bugs/793702

[ 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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/sctp/associola.c