summaryrefslogtreecommitdiff
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-06-24 17:51:21 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-07-08 17:14:27 -0400
commitbcaab953b1d3790c724a211f2452b574fd49a7ce (patch)
tree27ca81379f29efdf4267337da9434a3eeabdae31 /fs/nfsd/nfs4xdr.c
parent29c353b3fe54789706c0a37560ce4548a6362c2c (diff)
nfsd4: remove nfs4_acl_new
This is a not-that-useful kmalloc wrapper. And I'd like one of the callers to actually use something other than kmalloc. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 8fb0f3718202..fea41046427c 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -309,7 +309,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
if (nace > NFS4_ACL_MAX)
return nfserr_fbig;
- *acl = nfs4_acl_new(nace);
+ *acl = kmalloc(nfs4_acl_bytes(nace), GFP_KERNEL);
if (*acl == NULL)
return nfserr_jukebox;