sctp: allow sctp_init_cause to return errors
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Sun, 29 Apr 2018 15:56:31 +0000 (12:56 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 16:09:35 +0000 (12:09 -0400)
commit6d3e8aa87622b30bfabbbfad7674d2464f2a9cb9
tree0b133b6911870067b472d9a214d081c0919a11ae
parent065662d941cb85449985d9b5a7cd1cc49676cc79
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>
include/net/sctp/sm.h
net/sctp/sm_make_chunk.c