kernel-ark/net
David S. Miller 5c668704b7 [UDP]: Fix reversed logic in udp_get_port().
When this code was converted to use sk_for_each() the
logic for the "best hash chain length" code was reversed,
breaking everything.

The original code was of the form:

			size = 0;
			do {
				if (++size >= best_size_so_far)
					goto next;
			} while ((sk = sk->next) != NULL);
			best_size_so_far = size;
			best = result;
		next:;

and this got converted into:

			sk_for_each(sk2, node, head)
				if (++size < best_size_so_far) {
					best_size_so_far = size;
					best = result;
				}

Which does something very very different from the original.

Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-22 11:42:26 -08:00
..
802
8021q
appletalk
atm
ax25 [AX.25]: Fix unchecked ax25_linkfail_register uses 2006-12-17 21:59:11 -08:00
bluetooth
bridge [NETFILTER]: bridge-netfilter: remove deferred hooks 2006-12-13 16:54:25 -08:00
core
dccp [DCCP] ccid3: return value in ccid3_hc_rx_calc_first_li 2006-12-13 16:48:24 -08:00
decnet
econet
ethernet
ieee80211
ipv4 [UDP]: Fix reversed logic in udp_get_port(). 2006-12-22 11:42:26 -08:00
ipv6 [NETFILTER] IPV6: Fix dependencies. 2006-12-17 21:59:18 -08:00
ipx
irda
key
lapb
llc
netfilter [NETFILTER]: bridge-netfilter: remove deferred hooks 2006-12-13 16:54:25 -08:00
netlabel NetLabel: correctly fill in unused CIPSOv4 level and category mappings 2006-12-22 11:11:58 -08:00
netlink
netrom [AX.25]: Fix unchecked ax25_linkfail_register uses 2006-12-17 21:59:11 -08:00
packet
rose [AX.25]: Fix unchecked rose_add_loopback_neigh uses 2006-12-17 21:59:14 -08:00
rxrpc
sched
sctp [SCTP]: make 2 functions static 2006-12-22 11:12:05 -08:00
sunrpc [PATCH] gss_spkm3: fix error handling in module init 2006-12-22 08:55:49 -08:00
tipc
unix
wanrouter
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE