]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
sctp: get list_of_streams of strreset outreq earlier
authorXin Long <lucien.xin@gmail.com>
Sat, 15 Apr 2017 13:56:57 +0000 (21:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 19:25:35 +0000 (15:25 -0400)
commitedb12f2d72d735acfb3aa53bbda64b1827042209
tree53b3f6d2889a3b01fd1c20f428dd7bcd6926482b
parent9fd0f315631f3d3677cbd44966749cb63e55058a
sctp: get list_of_streams of strreset outreq earlier

Now when processing strreset out responses, it gets outreq->list_of_streams
only when result is performed. But if result is not performed, str_p will
be NULL. It will cause panic in sctp_ulpevent_make_stream_reset_event if
nums is not 0.

This patch is to fix it by getting outreq->list_of_streams earlier, and
also to improve some codes for the strreset inreq process.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c