]> 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)
commita949efe770c525f30bdf932e76f256176c440c57
tree0e9a25509b018b30792815f4a988e2c695dbf64b
parentd06ccca6ce37308d0b7751e33f31da67f7d6c9a6
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