summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2017-10-03 19:20:08 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-25 14:26:28 +0100
commit5d1b6695edb773d27f100eafc8cc9a34c58cb07f (patch)
tree88fde08932bfefe10f073e3e5d285a22a68959d2 /sound
parentfa21a13d76a7eed4b1df1a5223752051dbfde948 (diff)
sctp: silence warns on sctp_stream_init allocations
[ Upstream commit 1ae2eaaa229bc350b6f38fbf4ab9c873532aecfb ] As SCTP supports up to 65535 streams, that can lead to very large allocations in sctp_stream_init(). As Xin Long noticed, systems with small amounts of memory are more prone to not have enough memory and dump warnings on dmesg initiated by user actions. Thus, silence them. Also, if the reallocation of stream->out is not necessary, skip it and keep the memory we already have. Reported-by: Xin Long <lucien.xin@gmail.com> 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions