]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix error return code in sctp_send_add_streams()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 31 Oct 2017 13:28:16 +0000 (13:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 12:24:41 +0000 (21:24 +0900)
commitc9bbabda5df4b7a1f1e8e95646459fb50605c583
tree24623c590d10295e534c541e8782951d30ce6bda
parent345d1783dd1b68ab3e4117dbb62db7ea957ebc59
sctp: fix error return code in sctp_send_add_streams()

Fix to returnerror code -ENOMEM from the sctp_make_strreset_addstrm()
error handling case instead of 0. 'retval' can be overwritten to 0 after
call sctp_stream_alloc_out().

Fixes: 80d426136427 ("sctp: factor out stream->out allocation")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c