NFS: missing nfs_fattr_init in nfs3_proc_getacl and nfs3_proc_setacls
Subsystems (2)
PATCH 1/1 NFS: missing nfs_fattr_init in nfs3_proc_getacl and nfs3_proc_setacls
The fattrs used in the NFSv3 getacl/setacl calls are not being properly initialized.
Thanks to Cai Qian for noticing the strange nfs_debug messages.
Signed-off-by Jeff Layton <[email protected]>
--- fs/nfs/nfs3acl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/nfs/nfs3acl.c +2 -0
@@ -229,6 +229,7 @@ struct posix_acl *nfs3_proc_getacl(struct inode *inode, int type)dprintk ("NFS call getacl\n" ); msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_GETACL ]; +nfs_fattr_init (&fattr); status =rpc_call_sync (server->client_acl, &msg,0 );dprintk ("NFS reply getacl: %d\n" , status);
@@ -322,6 +323,7 @@ static int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,dprintk ("NFS call setacl\n" ); msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_SETACL ]; +nfs_fattr_init (&fattr); status =rpc_call_sync (server->client_acl, &msg,0 );nfs_access_zap_cache (inode);nfs_zap_acl_cache (inode);
Signature · 1 line
1.5.5.1