Skip to content
Snippets Groups Projects
Commit 9f00a2a0 authored by Xin Long's avatar Xin Long Committed by Greg Kroah-Hartman
Browse files

sctp: hold endpoint before calling cb in sctp_transport_lookup_process


commit f9d31c4c upstream.

The same fix in commit 5ec7d18d ("sctp: use call_rcu to free endpoint")
is also needed for dumping one asoc and sock after the lookup.

Fixes: 86fdb344 ("sctp: ensure ep is not destroyed before doing the dump")
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3c5c81d1
No related branches found
No related tags found
1 merge request!531upgrade to v5.15.14
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment