summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2012-07-26 22:52:21 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-07-27 20:45:50 (GMT)
commit42493570100b91ef663c4c6f0c0fdab238f9d3c2 (patch)
treea97aede6490c7eea90b83b1bf3bd26037e5485c9 /drivers/net
parentb387e41e523c1aa347cff055455d0dd129357df4 (diff)
downloadlinux-fsl-qoriq-42493570100b91ef663c4c6f0c0fdab238f9d3c2.tar.xz
tcp: Add TCP_USER_TIMEOUT negative value check
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 <liuhangbin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions