]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] kNFSd: Corrects an error return for OP_OPEN_CONFIRM.
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 14:50:16 +0000 (06:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 14:50:16 +0000 (06:50 -0800)
From: NeilBrown <neilb@cse.unsw.edu.au>

Corrects an error return for OP_OPEN_CONFIRM.

fs/nfsd/nfs4state.c

index eab240d994bf8ed98885516548b1b0ee462f4aef..0e7e5a06d1f04f77ffe8954f42efc8798643b93d 100644 (file)
@@ -1534,6 +1534,10 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfs
        dprintk("NFSD: nfsd4_open_confirm on file %.*s\n",
                        (int)current_fh->fh_dentry->d_name.len,
                        current_fh->fh_dentry->d_name.name);
+
+       if ((status = fh_verify(rqstp, current_fh, S_IFREG, 0)))
+               goto out;
+
        oc->oc_stateowner = NULL;
        nfs4_lock_state();