Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288549
b: refs/heads/master
c: 605b4af
h: refs/heads/master
i:
  288547: a52de48
v: v3
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Feb 21, 2012
1 parent ef3f250 commit 3f25e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 4f9c8c1b091628a550b70ee51d7d729187f5c290
refs/heads/master: 605b4afec8e51d0603089eac01a3ca9dd919e909
7 changes: 1 addition & 6 deletions trunk/net/ipv4/ip_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,6 @@ int ip_recv_error(struct sock *sk, struct msghdr *msg, int len)
}


static void opt_kfree_rcu(struct rcu_head *head)
{
kfree(container_of(head, struct ip_options_rcu, rcu));
}

/*
* Socket option code for IP. This is the end of the line after any
* TCP,UDP etc options on an IP socket.
Expand Down Expand Up @@ -525,7 +520,7 @@ static int do_ip_setsockopt(struct sock *sk, int level,
}
rcu_assign_pointer(inet->inet_opt, opt);
if (old)
call_rcu(&old->rcu, opt_kfree_rcu);
kfree_rcu(old, rcu);
break;
}
case IP_PKTINFO:
Expand Down

0 comments on commit 3f25e87

Please sign in to comment.