]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: properly handle md5sig_pool references
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 29 Sep 2011 17:10:10 +0000 (17:10 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:02 +0000 (11:18 -0800)
commit34f02f14b822dffba253352c2d44ba900196fef7
tree5602dec5996b2a268b39e395fbbbc084f29368aa
parent1f4215f1dd55bb98b4b143cb34f1f94cfa85b321
tcp: properly handle md5sig_pool references

[ Upstream commit 260fcbeb1ae9e768a44c9925338fbacb0d7e5ba9 ]

tcp_v4_clear_md5_list() assumes that multiple tcp md5sig peers
only hold one reference to md5sig_pool. but tcp_v4_md5_do_add()
increases use count of md5sig_pool for each peer. This patch
makes tcp_v4_md5_do_add() only increases use count for the first
tcp md5sig peer.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c