]> git.baikalelectronics.ru Git - 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)
commit87fc6230fc493019c9209cab966a89050f6f1d4f
tree53b3f6d2889a3b01fd1c20f428dd7bcd6926482b
parented2d4739a6051b8acdb0ae4cb68638a6cd1720b0
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