|
@@ -235,15 +235,15 @@ do_open_lookup(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_o
|
|
*/
|
|
*/
|
|
if (open->op_createmode == NFS4_CREATE_EXCLUSIVE && status == 0)
|
|
if (open->op_createmode == NFS4_CREATE_EXCLUSIVE && status == 0)
|
|
open->op_bmval[1] = (FATTR4_WORD1_TIME_ACCESS |
|
|
open->op_bmval[1] = (FATTR4_WORD1_TIME_ACCESS |
|
|
- FATTR4_WORD1_TIME_MODIFY);
|
|
|
|
|
|
+ FATTR4_WORD1_TIME_MODIFY);
|
|
} else {
|
|
} else {
|
|
status = nfsd_lookup(rqstp, current_fh,
|
|
status = nfsd_lookup(rqstp, current_fh,
|
|
open->op_fname.data, open->op_fname.len, resfh);
|
|
open->op_fname.data, open->op_fname.len, resfh);
|
|
fh_unlock(current_fh);
|
|
fh_unlock(current_fh);
|
|
- if (status)
|
|
|
|
- goto out;
|
|
|
|
- status = nfsd_check_obj_isreg(resfh);
|
|
|
|
}
|
|
}
|
|
|
|
+ if (status)
|
|
|
|
+ goto out;
|
|
|
|
+ status = nfsd_check_obj_isreg(resfh);
|
|
if (status)
|
|
if (status)
|
|
goto out;
|
|
goto out;
|
|
|
|
|