From: Hangbin Liu Date: Thu, 26 Jul 2012 22:52:21 +0000 (+0000) Subject: tcp: Add TCP_USER_TIMEOUT negative value check X-Git-Tag: v3.2.28~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df7ba2e6620095039c0aa42af7de1ec565eca2eb;p=pandora-kernel.git tcp: Add TCP_USER_TIMEOUT negative value check [ Upstream commit 42493570100b91ef663c4c6f0c0fdab238f9d3c2 ] TCP_USER_TIMEOUT is a TCP level socket option that takes an unsigned int. But patch "tcp: Add TCP_USER_TIMEOUT socket option"(dca43c75) didn't check the negative values. If a user assign -1 to it, the socket will set successfully and wait for 4294967295 miliseconds. This patch add a negative value check to avoid this issue. Signed-off-by: Hangbin Liu Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed