dccp: fix memory leak during tear-down of unsuccessful connection request
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Sun, 12 Mar 2017 23:01:30 +0000 (00:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:43:35 +0000 (12:43 +0100)
commit9e38375a4b1748946ab46a317def3046bb425f1e
treecc32ee3b13da4ac80630623c1470233123547666
parentbeaa66cce55689076cacd3b6b290886d503eaa35
dccp: fix memory leak during tear-down of unsuccessful connection request

[ Upstream commit 72ef9c4125c7b257e3a714d62d778ab46583d6a3 ]

This patch fixes a memory leak, which happens if the connection request
is not fulfilled between parsing the DCCP options and handling the SYN
(because e.g. the backlog is full), because we forgot to free the
list of ack vectors.

Reported-by: Jianwen Ji <jiji@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dccp/ccids/ccid2.c