git: 80a595a2936d - stable/12 - nfscommon: Fix arguments for priv_check_cred()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Dec 2021 03:03:54 UTC
The branch stable/12 has been updated by rmacklem:
URL: https://cgit.FreeBSD.org/src/commit/?id=80a595a2936dd4bfe5e8e3f51896b135dd2568b3
commit 80a595a2936dd4bfe5e8e3f51896b135dd2568b3
Author: Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2021-12-18 03:00:50 +0000
Commit: Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2021-12-18 03:00:50 +0000
nfscommon: Fix arguments for priv_check_cred()
Cherry-pick commit b386392ea909 resulted in a missing
argument for priv_check_cred(). This patch
fixes this.
This is a direct commit.
---
sys/fs/nfs/nfs_commonsubs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c
index 1b3caba07b07..c7271cffe1ab 100644
--- a/sys/fs/nfs/nfs_commonsubs.c
+++ b/sys/fs/nfs/nfs_commonsubs.c
@@ -1980,7 +1980,7 @@ nfsv4_loadattr(struct nfsrv_descript *nd, vnode_t vp,
NFSM_DISSECT(tl, u_int32_t *, NFSX_HYPER);
if (compare) {
if (priv_check_cred(cred,
- PRIV_VFS_BLOCKRESERVE))
+ PRIV_VFS_BLOCKRESERVE, 0))
uquad = sbp->f_bfree;
else
uquad = (uint64_t)sbp->f_bavail;