]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TCP: Fix a bug in strategy_allowed_congestion_control
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 15 Feb 2008 09:48:20 +0000 (01:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:34 +0000 (16:18 -0800)
commit5531e217653acba748a687e949e9e2f39462c969
treedc6a6575ae28d1157ea56efbfaf3749aaaa1f25d
parentc5ae77d37bde1e9b2db48026f6a483a7fd08c076
TCP: Fix a bug in strategy_allowed_congestion_control

Upstream commit: 16ca3f913001efdb6171a2781ef41c77474e3895

In strategy_allowed_congestion_control of the 2.6.24 kernel, when
sysctl_string return 1 on success,it should call
tcp_set_allowed_congestion_control to set the allowed congestion
control.But, it don't.  the sysctl_string return 1 on success,
otherwise return negative, never return 0.The patch fix the problem.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/sysctl_net_ipv4.c