forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mptcp: don't overwrite sock_ops in mptcp_is_tcpsk()
Eric suggests: > The fact that mptcp_is_tcpsk() was able to write over sock->ops was a > bit strange to me. > mptcp_is_tcpsk() should answer a question, with a read-only argument. re-factor code to avoid overwriting sock_ops inside that function. Also, change the helper name to reflect the semantic, and to disambiguate from its dual sk_is_mptcp(). Link: multipath-tcp/mptcp_net-next#432 Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Davide Caratti <[email protected]>
- Loading branch information
1 parent
df60abf
commit 1624391
Showing
1 changed file
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters