Skip to content

Commit

Permalink
SUNRPC: Fix trace_svc_register() call site
Browse files Browse the repository at this point in the history
[ Upstream commit 07a2730 ]

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

Fixes: b4af593 ("SUNRPC: Trace server-side rpcbind registration events")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
chucklever authored and gregkh committed May 24, 2023
1 parent 27ad3d5 commit 6afdb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/svc.c
Expand Up @@ -1018,7 +1018,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;
}

Expand Down

0 comments on commit 6afdb52

Please sign in to comment.