net/sctp: Replace in/out stream arrays with flex_array
authorKonstantin Khorenko <khorenko@virtuozzo.com>
Fri, 10 Aug 2018 17:11:43 +0000 (20:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:25:15 +0000 (12:25 -0700)
commit0d493b4d0be352b5e361e4fa0bc3efe952d8b10e
treedeb3bba890d034e4bbf323e99060f7c5fe934e6e
parent05364ca03cfd419caecb292fede20eb39667eaae
net/sctp: Replace in/out stream arrays with flex_array

This path replaces physically contiguous memory arrays
allocated using kmalloc_array() with flexible arrays.
This enables to avoid memory allocation failures on the
systems under a memory stress.

Signed-off-by: Oleg Babin <obabin@virtuozzo.com>
Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/stream.c