Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210144
b: refs/heads/master
c: c34186e
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Aug 28, 2010
1 parent 4f39a8b commit c6ce35b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e368739e3b3f1d7944794c178a15f05829b56bc
refs/heads/master: c34186ed008229e7f7e3f1de8e6acf6374995358
5 changes: 3 additions & 2 deletions trunk/net/ipv4/tcp_cong.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ void tcp_get_allowed_congestion_control(char *buf, size_t maxlen)
int tcp_set_allowed_congestion_control(char *val)
{
struct tcp_congestion_ops *ca;
char *clone, *name;
char *saved_clone, *clone, *name;
int ret = 0;

clone = kstrdup(val, GFP_USER);
saved_clone = clone = kstrdup(val, GFP_USER);
if (!clone)
return -ENOMEM;

Expand All @@ -226,6 +226,7 @@ int tcp_set_allowed_congestion_control(char *val)
}
out:
spin_unlock(&tcp_cong_list_lock);
kfree(saved_clone);

return ret;
}
Expand Down

0 comments on commit c6ce35b

Please sign in to comment.