[PATCH] knfsd: nfsd4: fix open_confirm locking
[linux-2.6-block.git] / fs / nfsd / nfs4state.c
index 7c7d01672d35a4dc47bbd5ca5d059adcdc1c6598..21497321a525fb8ec846d5e3da117a2179a4cad4 100644 (file)
@@ -2252,8 +2252,9 @@ nfsd4_open_confirm(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfs
                        (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;
+       status = fh_verify(rqstp, current_fh, S_IFREG, 0);
+       if (status)
+               return status;
 
        nfs4_lock_state();