]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/inet_hashtables.c
ocfs2: Commit journal on sync writes
[linux-2.6-omap-h63xx.git] / net / ipv4 / inet_hashtables.c
index fac6398e436709c714b95992c9045e740454d004..16eecc7046a346d6a2a22e1c33f71055a333f4c2 100644 (file)
@@ -286,7 +286,7 @@ int inet_hash_connect(struct inet_timewait_death_row *death_row,
                struct inet_timewait_sock *tw = NULL;
 
                inet_get_local_port_range(&low, &high);
-               remaining = high - low;
+               remaining = (high - low) + 1;
 
                local_bh_disable();
                for (i = 1; i <= remaining; i++) {