Commit 2563540f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kNFSd: Fix an out-of-spec error in nfsd4_remove.

From: NeilBrown <neilb@cse.unsw.edu.au>

Fix an out-of-spec error in nfsd4_remove.
parent 5754f1d8
...@@ -478,6 +478,8 @@ nfsd4_remove(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_rem ...@@ -478,6 +478,8 @@ nfsd4_remove(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_rem
int status; int status;
status = nfsd_unlink(rqstp, current_fh, 0, remove->rm_name, remove->rm_namelen); status = nfsd_unlink(rqstp, current_fh, 0, remove->rm_name, remove->rm_namelen);
if (status == nfserr_symlink)
return nfserr_notdir;
if (!status) { if (!status) {
fh_unlock(current_fh); fh_unlock(current_fh);
set_change_info(&remove->rm_cinfo, current_fh); set_change_info(&remove->rm_cinfo, current_fh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment