]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:57:02 +0000 (12:57 +0100)
commitf70ce6c63e02d39a4009aa68d041a8dfe7f439f9
treed86fabc71e58f2967ee41ac2bae1b5b9bc0d75a5
parenta79fa23c82a1b7ee3726ea348336fbe874130a7c
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