aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2018-12-21 19:03:14 +0100
committerDavid S. Miller <davem@davemloft.net>2018-12-21 10:24:54 -0800
commitd312d0a6846a4553bd955afd414f8f55398ece07 (patch)
tree164564a7e889a64b15f46845d6ab0f887f9debeb /include/linux/skbuff.h
parentnet: fix possible user-after-free in skb_ext_add() (diff)
downloadlinux-dev-d312d0a6846a4553bd955afd414f8f55398ece07.tar.xz
linux-dev-d312d0a6846a4553bd955afd414f8f55398ece07.zip
net: drop the unused helper skb_ext_get()
Such helper is currently unused, and skb extension users are better off using skb_ext_add()/skb_ext_del(). So let's drop it. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 3f741b04e55d..2a57a365c711 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -3938,16 +3938,6 @@ static inline void skb_ext_put(struct sk_buff *skb)
__skb_ext_put(skb->extensions);
}
-static inline void skb_ext_get(struct sk_buff *skb)
-{
- if (skb->active_extensions) {
- struct skb_ext *ext = skb->extensions;
-
- if (ext)
- refcount_inc(&ext->refcnt);
- }
-}
-
static inline void __skb_ext_copy(struct sk_buff *dst,
const struct sk_buff *src)
{
@@ -3995,7 +3985,6 @@ static inline void *skb_ext_find(const struct sk_buff *skb, enum skb_ext_id id)
}
#else
static inline void skb_ext_put(struct sk_buff *skb) {}
-static inline void skb_ext_get(struct sk_buff *skb) {}
static inline void skb_ext_del(struct sk_buff *skb, int unused) {}
static inline void __skb_ext_copy(struct sk_buff *d, const struct sk_buff *s) {}
static inline void skb_ext_copy(struct sk_buff *dst, const struct sk_buff *s) {}