|
@@ -445,11 +445,6 @@ out:
|
|
|
}
|
|
|
|
|
|
|
|
|
-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.
|
|
@@ -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:
|