Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

net: add comment for sock_efree() usage

parent 3f39d625
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);