X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fipv4%2Finet_hashtables.c;h=d3e160a88219d5d45c759bff91d2da54a03939bc;hb=cc10b6ffd39ef982f86de68d95e5811df82cf819;hp=2b79377b468dd0b06d69b0c6b5842f52ba52db07;hpb=18e41da89d55014d25b9a24502ee92b7f50599f9;p=karo-tx-linux.git diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 2b79377b468d..d3e160a88219 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -456,6 +456,8 @@ int __inet_hash_connect(struct inet_timewait_death_row *death_row, local_bh_disable(); for (i = 1; i <= remaining; i++) { port = low + (i + offset) % remaining; + if (inet_is_reserved_local_port(port)) + continue; head = &hinfo->bhash[inet_bhashfn(net, port, hinfo->bhash_size)]; spin_lock(&head->lock);