diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2022-07-11 22:51:27 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2022-07-27 20:25:54 +0000 |
commit | fb8e858c69fe1773ce1e28efda17fa23304f58ad (patch) | |
tree | 22e7e0b188b9d2918c6e9c8f74d4f7613ceb54a7 | |
parent | 99bdbd808e3234e57709950cf0fd88d39d1edf22 (diff) | |
download | src-fb8e858c69fe1773ce1e28efda17fa23304f58ad.tar.gz src-fb8e858c69fe1773ce1e28efda17fa23304f58ad.zip |
nfscl: Replace "cred" with NULL to cleanup code
Commit 326bcf9394c7 added a new "cred" argument to nfscl_reqstart().
Fsinfo is a NFSv3 RPC and since the "cred" argument is not
used for NFSv3, it does not matter what is passed in.
However, to be consistent with the rest of the patch, change the
argument to NULL.
This patch should not result in a semantics change.
PR: 260011
(cherry picked from commit 2adb30740b12d4b80b8a1eb04b58ce0f6eb51de1)
-rw-r--r-- | sys/fs/nfsclient/nfs_clrpcops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c index 034770ddd67c..05e3ebe5114d 100644 --- a/sys/fs/nfsclient/nfs_clrpcops.c +++ b/sys/fs/nfsclient/nfs_clrpcops.c @@ -4533,7 +4533,7 @@ nfsrpc_fsinfo(vnode_t vp, struct nfsfsinfo *fsp, struct ucred *cred, int error; *attrflagp = 0; - NFSCL_REQSTART(nd, NFSPROC_FSINFO, vp, cred); + NFSCL_REQSTART(nd, NFSPROC_FSINFO, vp, NULL); error = nfscl_request(nd, vp, p, cred, stuff); if (error) return (error); |