Commit 7768eed8 authored by Oliver Hartkopp's avatar Oliver Hartkopp Committed by David S. Miller

net: add comment for sock_efree() usage

Signed-off-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Acked-by: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f39d625
...@@ -1655,6 +1655,10 @@ void sock_rfree(struct sk_buff *skb) ...@@ -1655,6 +1655,10 @@ void sock_rfree(struct sk_buff *skb)
} }
EXPORT_SYMBOL(sock_rfree); EXPORT_SYMBOL(sock_rfree);
/*
* Buffer destructor for skbs that are not used directly in read or write
* path, e.g. for error handler skbs. Automatically called from kfree_skb.
*/
void sock_efree(struct sk_buff *skb) void sock_efree(struct sk_buff *skb)
{ {
sock_put(skb->sk); sock_put(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