diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2015-03-10 19:03:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-10 16:12:20 -0400 |
commit | 7768eed8bf1d2e5eefa38c573f15f737a9824052 (patch) | |
tree | d47590842a4760ae4ab51d4e69b664d567f9b89f /net | |
parent | 3f39d6257b2812ddd2309a875f55838077f55cef (diff) | |
download | op-kernel-dev-7768eed8bf1d2e5eefa38c573f15f737a9824052.zip op-kernel-dev-7768eed8bf1d2e5eefa38c573f15f737a9824052.tar.gz |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 93c8b20..78e89eb 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -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); |