]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: factor out stream->out allocation
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 3 Oct 2017 22:20:09 +0000 (19:20 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Oct 2017 23:27:28 +0000 (16:27 -0700)
commit80d426136427eb90fff53750eb7dd36c784aa06e
tree9ec7d57c519b775408d560caa637ee058f878bd0
parent692e2db0d8b16540faff2c91f58968f8b8ed4eca
sctp: factor out stream->out allocation

There is 1 place allocating it and 2 other reallocating. Move such
procedures to a common function.

Tested-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c