]> err.no Git - linux-2.6/blobdiff - net/ipv6/inet6_hashtables.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
[linux-2.6] / net / ipv6 / inet6_hashtables.c
index 1c2c2765543505d7e61dd021fa2fcf2b9482757f..d6f1026f19438114bfef264b1f669cf03f0fd131 100644 (file)
@@ -261,7 +261,7 @@ int inet6_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++) {