aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-07-02 07:41:01 -0700
committerDavid S. Miller <[email protected]>2021-07-02 13:32:55 -0700
commit81b4a0cc7565b08cadd0d02bae3434f127d1d72a (patch)
tree0ee190fc4cba40742c2c439ce0a41869c317e73d
parent561022acb1ce62e50f7a8258687a21b84282a4cb (diff)
sock: fix error in sock_setsockopt()
Some tests are failing, John bisected the issue to a recent commit. sock_set_timestamp() parameters should be : 1) sk 2) optname 3) valbool Fixes: 371087aa476a ("sock: expose so_timestamp options for mptcp") Signed-off-by: Eric Dumazet <[email protected]> Bisected-by: John Sperbeck <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Florian Westphal <[email protected]> Cc: Mat Martineau <[email protected]> Reviewed-by: Florian Westphal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index cad107112204..1c4b0468bc2c 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1116,7 +1116,7 @@ set_sndbuf:
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: