sock: fix error in sock_setsockopt()
Subsystems (3)
PATCH 1/1 sock: fix error in sock_setsockopt()
From: Eric Dumazet <[email protected]>
Some tests are failing, John bisected the issue to a recent commit.
sock_set_timestamp() parameters should be :
1) sk
2) optname
3) valbool
--- net/core/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/sock.c +1 -1
@@ -1116,7 +1116,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname,case SO_TIMESTAMP_NEW :case SO_TIMESTAMPNS_OLD :case SO_TIMESTAMPNS_NEW : -sock_set_timestamp (sk, valbool, optname); +sock_set_timestamp (sk, optname, valbool);break ;case SO_TIMESTAMPING_NEW :
Signature · 1 line
2.32.0.93.g670b81a890-goog
Quoted 9 lines · Eric Dumazet
From: Eric Dumazet <[email protected]>
Some tests are failing, John bisected the issue to a recent commit.
sock_set_timestamp()parameters should be :1) sk
2) optname
3) valbool
Oh, right!
Thanks for fixing this.
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 11 lines · On Fri, 2 Jul 2021 07:41:01 -0700 you wrote:
From: Eric Dumazet <[email protected]>
Some tests are failing, John bisected the issue to a recent commit.
sock_set_timestamp()parameters should be :1) sk
2) optname
3) valbool[...]
Here is the summary with links:
- [net] sock: fix error in sock_setsockopt()
https://git.kernel.org/netdev/net/c/81b4a0cc7565
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html