X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fnfs%2Fnfs4proc.c;h=83e700a2b0c0096d100c58a31fcf3ad0023f73b6;hb=a02efb906d12c9d4eb2ab7c59049ba9545e5412d;hp=c910413eaecafd80ff2c6012dda6baad388cc6dd;hpb=2b04be7e8ab5756ea36e137dd03c8773d184e67e;p=linux-2.6-omap-h63xx.git diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index c910413eaec..83e700a2b0c 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -1659,8 +1659,10 @@ nfs4_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr, struct nfs_open_context *ctx; ctx = nfs_file_open_context(sattr->ia_file); - cred = ctx->cred; - state = ctx->state; + if (ctx) { + cred = ctx->cred; + state = ctx->state; + } } status = nfs4_do_setattr(inode, cred, fattr, sattr, state);