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 21:12:20 +0100 |
commit | 7768eed8bf1d2e5eefa38c573f15f737a9824052 (patch) | |
tree | d47590842a4760ae4ab51d4e69b664d567f9b89f | |
parent | Merge tag 'wireless-drivers-for-davem-2015-03-10' of git://git.kernel.org/pub... (diff) | |
download | linux-7768eed8bf1d2e5eefa38c573f15f737a9824052.tar.xz linux-7768eed8bf1d2e5eefa38c573f15f737a9824052.zip |
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>
-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 93c8b20c91e4..78e89eb7eb70 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); |