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

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

v2: updated changelog

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