]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 22 Mar 2017 14:02:34 +0000 (08:02 -0600)
commit7a7c8866070234ff7a050a23ab09bcadddb71d4e
treebb03c9c141b2dab135bb236033bba56c7cc4a78f
parentbe758e812c3533e66fe3ec26e54003b073f04d90
dccp: fix memory leak during tear-down of unsuccessful connection request

BugLink: http://bugs.launchpad.net/bugs/1675032
[ 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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/dccp/ccids/ccid2.c