Thread (4 messages) flat view 4 messages, 3 authors, 2015-08-20
STALE4017d

[PATCH] net: Provide lwtstate_free for non-lwt config

From: Alex Gartrell <hidden>
Date: 2015-08-19 22:16:10
Subsystem: networking [general], networking [ipv4/ipv6], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, David Ahern, Ido Schimmel, Linus Torvalds

Fixes: df383e624 ("lwtunnel: fix memory leak")

Signed-off-by: Alex Gartrell <redacted>
---
 include/net/lwtunnel.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/include/net/lwtunnel.h b/include/net/lwtunnel.h
index 34fd8f7..cfee539 100644
--- a/include/net/lwtunnel.h
+++ b/include/net/lwtunnel.h
@@ -93,6 +93,10 @@ int lwtunnel_input6(struct sk_buff *skb);
 
 #else
 
+static inline void lwtstate_free(struct lwtunnel_state *lws)
+{
+}
+
 static inline struct lwtunnel_state *
 lwtstate_get(struct lwtunnel_state *lws)
 {
-- 
Alex Gartrell <agartrell@fb.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help