Commit 8f1a8602 authored by Ben Hutchings's avatar Ben Hutchings

net/sock: Add sock_efree() function

Extracted from commit 62bccb8c ("net-timestamp: Make the clone operation
stand-alone from phy timestamping").
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 3f70197d
...@@ -1569,6 +1569,7 @@ struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, ...@@ -1569,6 +1569,7 @@ struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force,
void sock_wfree(struct sk_buff *skb); void sock_wfree(struct sk_buff *skb);
void skb_orphan_partial(struct sk_buff *skb); void skb_orphan_partial(struct sk_buff *skb);
void sock_rfree(struct sk_buff *skb); void sock_rfree(struct sk_buff *skb);
void sock_efree(struct sk_buff *skb);
void sock_edemux(struct sk_buff *skb); void sock_edemux(struct sk_buff *skb);
int sock_setsockopt(struct socket *sock, int level, int op, int sock_setsockopt(struct socket *sock, int level, int op,
......
...@@ -1678,6 +1678,12 @@ void sock_rfree(struct sk_buff *skb) ...@@ -1678,6 +1678,12 @@ void sock_rfree(struct sk_buff *skb)
} }
EXPORT_SYMBOL(sock_rfree); EXPORT_SYMBOL(sock_rfree);
void sock_efree(struct sk_buff *skb)
{
sock_put(skb->sk);
}
EXPORT_SYMBOL(sock_efree);
void sock_edemux(struct sk_buff *skb) void sock_edemux(struct sk_buff *skb)
{ {
struct sock *sk = skb->sk; struct sock *sk = skb->sk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment