Commit 76f6adf0 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 ddd8309b
......@@ -1117,6 +1117,7 @@ extern struct sk_buff *sock_rmalloc(struct sock *sk,
gfp_t priority);
extern void sock_wfree(struct sk_buff *skb);
extern void sock_rfree(struct sk_buff *skb);
void sock_efree(struct sk_buff *skb);
extern int sock_setsockopt(struct socket *sock, int level,
int op, char __user *optval,
......
......@@ -1369,6 +1369,11 @@ void sock_rfree(struct sk_buff *skb)
}
EXPORT_SYMBOL(sock_rfree);
void sock_efree(struct sk_buff *skb)
{
sock_put(skb->sk);
}
EXPORT_SYMBOL(sock_efree);
int sock_i_uid(struct sock *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