Patch 2.6.32.28 to 2.6.32.32
/net/ipv4/tcp.c
blob:734fe94827dc7716e05581ff3013a2c41644fcda -> blob:f0956595006bb3c78504e2907e94b0d63ed2ffce
--- net/ipv4/tcp.c
+++ net/ipv4/tcp.c
@@ -2117,7 +2117,7 @@ static int do_tcp_setsockopt(struct sock
/* Values greater than interface MTU won't take effect. However
* at the point when this call is done we typically don't yet
* know which interface is going to be used */
- if (val < 8 || val > MAX_TCP_WINDOW) {
+ if (val < TCP_MIN_MSS || val > MAX_TCP_WINDOW) {
err = -EINVAL;
break;
}