aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <[email protected]>2017-10-03 19:20:08 -0300
committerDavid S. Miller <[email protected]>2017-10-03 16:27:28 -0700
commit1ae2eaaa229bc350b6f38fbf4ab9c873532aecfb (patch)
treed98497191233346cbe9aabbd73829c575f3850f9 /net/switchdev/switchdev.c
parentaf14827fa38cfc592e04287dd83b32059bdca328 (diff)
sctp: silence warns on sctp_stream_init allocations
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 <[email protected]> Tested-by: Xin Long <[email protected]> Signed-off-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions