Skip to content

Commit

Permalink
net: add comment for sock_efree() usage
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Hartkopp <[email protected]>
Acked-by: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hartkopp authored and davem330 committed Mar 10, 2015
1 parent 3f39d62 commit 7768eed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7768eed

Please sign in to comment.