]> git.baikalelectronics.ru Git - kernel.git/commitdiff
SUNRPC: Fix trace_svc_register() call site
authorChuck Lever <chuck.lever@oracle.com>
Sun, 14 May 2023 19:51:48 +0000 (15:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:45 +0000 (17:32 +0100)
[ Upstream commit 07a27305938559fb35f7a46fb90a5e37728bdee6 ]

The trace event recorded incorrect values for the registered family,
protocol, and port because the arguments are in the wrong order.

Fixes: c0f721e95e4b ("SUNRPC: Trace server-side rpcbind registration events")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/svc.c

index 9ee32e06f877eab0d646cd9f051ec939709d581f..9b0b21cccca9a1470f4ff338378a16f346391b97 100644 (file)
@@ -1007,7 +1007,7 @@ static int __svc_register(struct net *net, const char *progname,
 #endif
        }
 
-       trace_svc_register(progname, version, protocol, port, family, error);
+       trace_svc_register(progname, version, family, protocol, port, error);
        return error;
 }