summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/structs.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-11-25 23:57:26 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-25 23:57:26 +0100
commitadf6f8cb3f4c2a15d5f35e6cf9ffeb6856d35312 (patch)
treef1ba8b47d05b9e30cd3ed11cc06fc524e1aba7c9 /include/net/sctp/structs.h
parentenetc: add support Credit Based Shaper(CBS) for hardware offload (diff)
parentslip: Fix use-after-free Read in slip_open (diff)
downloadlinux-adf6f8cb3f4c2a15d5f35e6cf9ffeb6856d35312.tar.xz
linux-adf6f8cb3f4c2a15d5f35e6cf9ffeb6856d35312.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Merge in networking bug fixes for merge window. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r--include/net/sctp/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 3cc913f328cd..314a2fa21d6b 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -1243,6 +1243,9 @@ struct sctp_ep_common {
/* What socket does this endpoint belong to? */
struct sock *sk;
+ /* Cache netns and it won't change once set */
+ struct net *net;
+
/* This is where we receive inbound chunks. */
struct sctp_inq inqueue;