]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: sctp_remaddr_seq_show use the wrong variable to dump transport info
authorXin Long <lucien.xin@gmail.com>
Sun, 28 Feb 2016 02:33:11 +0000 (10:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 22:35:44 +0000 (17:35 -0500)
commit037367d2c449d92cadb8078257e5fffb6938008a
tree3daec4bf3762a03bff5e719708544d288db36942
parentf0bf247497ed9e74f7444ec7e4846b011ee49520
sctp: sctp_remaddr_seq_show use the wrong variable to dump transport info

Now in sctp_remaddr_seq_show(), we use variable *tsp to get the param *v.
but *tsp is also used to traversal transport_addr_list, which will cover
the previous value, and make sctp_transport_put work on the wrong transport.

So fix it by adding a new variable to get the param *v.

Fixes: 61dffcb02772 ("sctp: hold transport before we access t->asoc in sctp proc")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/proc.c