diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2018-04-29 17:56:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-01 18:09:35 +0200 |
commit | 6d3e8aa87622b30bfabbbfad7674d2464f2a9cb9 (patch) | |
tree | 0b133b6911870067b472d9a214d081c0919a11ae /include/net/sctp | |
parent | Merge branch 'net-stmmac-dwmac-meson-100M-phy-mode-support-for-AXG-SoC' (diff) | |
download | linux-6d3e8aa87622b30bfabbbfad7674d2464f2a9cb9.tar.xz linux-6d3e8aa87622b30bfabbbfad7674d2464f2a9cb9.zip |
sctp: allow sctp_init_cause to return errors
And do so if the skb doesn't have enough space for the payload.
This is a preparation for the next patch.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/sm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index f4b657478a30..5ef1bad81ef5 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h @@ -215,7 +215,7 @@ struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc, struct sctp_chunk *sctp_make_shutdown_complete( const struct sctp_association *asoc, const struct sctp_chunk *chunk); -void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause, size_t paylen); +int sctp_init_cause(struct sctp_chunk *chunk, __be16 cause, size_t paylen); struct sctp_chunk *sctp_make_abort(const struct sctp_association *asoc, const struct sctp_chunk *chunk, const size_t hint); |