]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 05:00:42 +0000 (22:00 -0700)
commitbac6a14d56534897d97a78f5c9c17eafcc1d2940
tree0e9a25509b018b30792815f4a988e2c695dbf64b
parent1a17b3541f80b8c9a81b1e48a3ebaab143fee605
dccp: fix memory leak during tear-down of unsuccessful connection request

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>
net/dccp/ccids/ccid2.c