diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-16 09:34:37 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-16 09:34:37 -0800 |
commit | 2eabb8b8d68bc9c7779ba8b04bec8d4f8baed0bc (patch) | |
tree | 4d8ea8e6ca52f1938269937834641205d8d888f0 /fs | |
parent | 49def1853334396f948dcb4cedb9347abb318df5 (diff) | |
parent | ce1ca7d2d140a1f4aaffd297ac487f246963dd2f (diff) | |
download | op-kernel-dev-2eabb8b8d68bc9c7779ba8b04bec8d4f8baed0bc.zip op-kernel-dev-2eabb8b8d68bc9c7779ba8b04bec8d4f8baed0bc.tar.gz |
Merge tag 'nfsd-4.10-1' of git://linux-nfs.org/~bfields/linux
Pull nfsd fixes from Bruce Fields:
"Miscellaneous nfsd bugfixes, one for a 4.10 regression, three for
older bugs"
* tag 'nfsd-4.10-1' of git://linux-nfs.org/~bfields/linux:
svcrdma: avoid duplicate dma unmapping during error recovery
sunrpc: don't call sleeping functions from the notifier block callbacks
svcrpc: don't leak contexts on PROC_DESTROY
nfsd: fix supported attributes for acl & labels
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 7ecf16b..8fae53c 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -2440,7 +2440,9 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, p++; /* to be backfilled later */ if (bmval0 & FATTR4_WORD0_SUPPORTED_ATTRS) { - u32 *supp = nfsd_suppattrs[minorversion]; + u32 supp[3]; + + memcpy(supp, nfsd_suppattrs[minorversion], sizeof(supp)); if (!IS_POSIXACL(dentry->d_inode)) supp[0] &= ~FATTR4_WORD0_ACL; |