]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited6809761904500a2c478b7ea8d72b4c7103c124
tree0b133b6911870067b472d9a214d081c0919a11ae
parent5bb634ab495f4be371bd8f43316fca91c563622b
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