[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1426010626-6482-1-git-send-email-socketcan@hartkopp.net>
Date: Tue, 10 Mar 2015 19:03:46 +0100
From: Oliver Hartkopp <socketcan@...tkopp.net>
To: netdev@...r.kernel.org
Cc: eric.dumazet@...il.com, alexander.h.duyck@...hat.com,
Oliver Hartkopp <socketcan@...tkopp.net>
Subject: [PATCH] net: add comment for sock_efree() usage
Signed-off-by: Oliver Hartkopp <socketcan@...tkopp.net>
---
net/core/sock.c | 4 ++++
1 file changed, 4 insertions(+)
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);
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists