mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
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
@ -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 New Issue
Block a user