From 73bcbb1fdf4bc6b0d324dbc15cff9388bd716e4a Mon Sep 17 00:00:00 2001 From: Sam Jansen Date: Mon, 19 Nov 2007 23:28:21 -0800 Subject: [PATCH] --- yaml --- r: 74195 b: refs/heads/master c: 5487796f0c9475586277a0a7a91211ce5746fa6a h: refs/heads/master i: 74193: 918b115914ca1a8587a66f71beb63303da505b8b 74191: 32a0264c1b045b41265bbb907fd036f6cbb4e7d8 v: v3 --- [refs] | 2 +- trunk/net/ipv4/sysctl_net_ipv4.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 9b6853edd4fc..44d880a8b8fc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6e42141009ff18297fe19d19296738b742f861db +refs/heads/master: 5487796f0c9475586277a0a7a91211ce5746fa6a diff --git a/trunk/net/ipv4/sysctl_net_ipv4.c b/trunk/net/ipv4/sysctl_net_ipv4.c index ffddd2b45352..bec6fe880657 100644 --- a/trunk/net/ipv4/sysctl_net_ipv4.c +++ b/trunk/net/ipv4/sysctl_net_ipv4.c @@ -191,7 +191,7 @@ static int sysctl_tcp_congestion_control(ctl_table *table, int __user *name, tcp_get_default_congestion_control(val); ret = sysctl_string(&tbl, name, nlen, oldval, oldlenp, newval, newlen); - if (ret == 0 && newval && newlen) + if (ret == 1 && newval && newlen) ret = tcp_set_default_congestion_control(val); return ret; }