diff options
author | 2020-08-03 21:00:44 +0800 | |
---|---|---|
committer | 2020-08-03 18:01:14 -0700 | |
commit | 190f8b060ee38fcea885e08b2fe0e3fdd428a618 (patch) | |
tree | 00dad1c6a60aecf6652d600e2c82fd6a3adb23d5 /net/mptcp | |
parent | Merge tag 'mac80211-next-for-davem-2020-08-03' of git://git.kernel.org/pub/sc... (diff) | |
download | linux-190f8b060ee38fcea885e08b2fe0e3fdd428a618.tar.gz linux-190f8b060ee38fcea885e08b2fe0e3fdd428a618.tar.bz2 linux-190f8b060ee38fcea885e08b2fe0e3fdd428a618.zip |
mptcp: use mptcp_for_each_subflow in mptcp_stream_accept
Use mptcp_for_each_subflow in mptcp_stream_accept instead of
open-coding.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp')
-rw-r--r-- | net/mptcp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index d3fe7296e1c9..400824eabf73 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -2249,7 +2249,7 @@ static int mptcp_stream_accept(struct socket *sock, struct socket *newsock, * This is needed so NOSPACE flag can be set from tcp stack. */ __mptcp_flush_join_list(msk); - list_for_each_entry(subflow, &msk->conn_list, node) { + mptcp_for_each_subflow(msk, subflow) { struct sock *ssk = mptcp_subflow_tcp_sock(subflow); if (!ssk->sk_socket) |