diff options
author | Xin Long <[email protected]> | 2019-02-04 03:27:58 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-02-03 14:27:47 -0800 |
commit | cfe4bd7a257f6d6f81d3458d8c9d9ec4957539e6 (patch) | |
tree | 7d8322b8132c6800108ca87dc965c661e9e3c871 /tools/perf/scripts/python/syscall-counts.py | |
parent | 8dfb8d2cceb76b74ad5b58cc65c75994329b4d5e (diff) |
sctp: check and update stream->out_curr when allocating stream_out
Now when using stream reconfig to add out streams, stream->out
will get re-allocated, and all old streams' information will
be copied to the new ones and the old ones will be freed.
So without stream->out_curr updated, next time when trying to
send from stream->out_curr stream, a panic would be caused.
This patch is to check and update stream->out_curr when
allocating stream_out.
v1->v2:
- define fa_index() to get elem index from stream->out_curr.
v2->v3:
- repost with no change.
Fixes: 5bbbbe32a431 ("sctp: introduce stream scheduler foundations")
Reported-by: Ying Xu <[email protected]>
Reported-by: [email protected]
Signed-off-by: Xin Long <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions