net: add comment for sock_efree() usage
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Acked-by: Alexander Duyck <alexander.h.duyck@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f39d6257b
commit
7768eed8bf
1 changed files with 4 additions and 0 deletions
|
@ -1655,6 +1655,10 @@ void sock_rfree(struct sk_buff *skb)
|
|||
}
|
||||
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)
|
||||
{
|
||||
sock_put(skb->sk);
|
||||
|
|
Loading…
Reference in a new issue