]> 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)
commitf9d14181b4fa06cbf84de8376bc8e4c875a72f43
tree0b133b6911870067b472d9a214d081c0919a11ae
parent50baf3410606fbeeff38f08c874414e1065b993d
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