diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-03-20 05:46:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-22 13:57:52 -0400 |
commit | 1511949c61ec63e4b646c34d602ac6990b38ce30 (patch) | |
tree | 50799693f25e5e4878183fb07890c20ca8189b67 | |
parent | 07fef3623407444e51c12ea57cd91df38c1069e0 (diff) |
sctp: declare struct sctp_stream before using it
sctp_stream_free uses struct sctp_stream as a param, but struct sctp_stream
is defined after it's declaration.
This patch is to declare struct sctp_stream before sctp_stream_free.
Fixes: a83863174a61 ("sctp: prepare asoc stream for stream reconf")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/sctp/structs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 4f645198e9bd..592decebac75 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -83,6 +83,7 @@ struct sctp_bind_addr; | |||
83 | struct sctp_ulpq; | 83 | struct sctp_ulpq; |
84 | struct sctp_ep_common; | 84 | struct sctp_ep_common; |
85 | struct crypto_shash; | 85 | struct crypto_shash; |
86 | struct sctp_stream; | ||
86 | 87 | ||
87 | 88 | ||
88 | #include <net/sctp/tsnmap.h> | 89 | #include <net/sctp/tsnmap.h> |