]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/inet_connection_sock.c
mmc: remove unused 'mode' from the mmc_host structure
[linux-2.6-omap-h63xx.git] / net / ipv4 / inet_connection_sock.c
index 3cef12835c4b2bfa86b50a74a788488cd5ac9ea1..8fb6ca23700aa8de4c446879b19186e626dfa396 100644 (file)
@@ -93,7 +93,7 @@ int inet_csk_get_port(struct inet_hashinfo *hashinfo,
                int remaining, rover, low, high;
 
                inet_get_local_port_range(&low, &high);
-               remaining = high - low;
+               remaining = (high - low) + 1;
                rover = net_random() % remaining + low;
 
                do {