tcp: fix a size_t < 0 comparison in tcp_read_sock
authorOctavian Purdila <opurdila@ixiacom.com>
Thu, 3 Jul 2008 10:31:21 +0000 (03:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2008 10:31:21 +0000 (03:31 -0700)
commit374e7b59498ce0785b3727794b351221528a5159
treedca488eae546ff8a113e614670e23460a23dc7ea
parent81b23b4a7acd9b37a269c62d02479d4f645dd20a
tcp: fix a size_t < 0 comparison in tcp_read_sock

<used> should be of type int (not size_t) since recv_actor can return
negative values and it is also used in a < 0 comparison.

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c