From: Dmitry Popov Date: Thu, 29 Jul 2010 01:59:36 +0000 (+0000) Subject: tcp: cookie transactions setsockopt memory leak X-Git-Tag: v2.6.36-rc1~571^2~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3bdb549e30e7a263f7a589747c40e9c50110315;p=pandora-kernel.git tcp: cookie transactions setsockopt memory leak There is a bug in do_tcp_setsockopt(net/ipv4/tcp.c), TCP_COOKIE_TRANSACTIONS case. In some cases (when tp->cookie_values == NULL) new tcp_cookie_values structure can be allocated (at cvp), but not bound to tp->cookie_values. So a memory leak occurs. Signed-off-by: Dmitry Popov Signed-off-by: David S. Miller --- Reading git-diff-tree failed