mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
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: fba4c330c5 ("sctp: hold transport before we access t->asoc in sctp proc")
Signed-off-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>