]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TCP]: Fix a bug in strategy_allowed_congestion_control
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 1 Feb 2008 00:47:27 +0000 (16:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:23 +0000 (19:28 -0800)
commit16ca3f913001efdb6171a2781ef41c77474e3895
tree5e679d3bdf9ce714895b47d1d4ecfb2d08f68c79
parent71d67e666e73e3b7e9ef124745ee2e454ac04be8
[TCP]: Fix a bug in strategy_allowed_congestion_control

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>
net/ipv4/sysctl_net_ipv4.c