提交 c281fa9c 编写于 作者: T Trond Myklebust

NFSv4: Deal with a sparse warning in nfs4_opendata_alloc

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 a9943d11
...@@ -933,7 +933,7 @@ static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry, ...@@ -933,7 +933,7 @@ static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry,
p->o_arg.fh = NFS_FH(dentry->d_inode); p->o_arg.fh = NFS_FH(dentry->d_inode);
} }
if (attrs != NULL && attrs->ia_valid != 0) { if (attrs != NULL && attrs->ia_valid != 0) {
__be32 verf[2]; __u32 verf[2];
p->o_arg.u.attrs = &p->attrs; p->o_arg.u.attrs = &p->attrs;
memcpy(&p->attrs, attrs, sizeof(p->attrs)); memcpy(&p->attrs, attrs, sizeof(p->attrs));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册