]> git.itanic.dy.fi Git - linux-stable/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:36:51 +0000 (17:36 +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: b4af59328c25 ("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 74a1c9116a7851bd714e7ad0e48188787950fe86..36a3ad9336d6fab074bd69ad3828835fc07d1ea2 100644 (file)
@@ -1024,7 +1024,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;
 }