projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8519f99
)
NFSD: Reset creds after mnt_want_write_file() fail
author
Kinglong Mee
<kinglongmee@gmail.com>
Tue, 2 Sep 2014 14:11:27 +0000
(22:11 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Wed, 3 Sep 2014 21:43:01 +0000
(17:43 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4recover.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4recover.c
b/fs/nfsd/nfs4recover.c
index 9c271f42604a3644e9e826af6f252348e1429249..e37ac1c53adb11d79467d432cb7980becb05f3f5 100644
(file)
--- a/
fs/nfsd/nfs4recover.c
+++ b/
fs/nfsd/nfs4recover.c
@@
-188,7
+188,7
@@
nfsd4_create_clid_dir(struct nfs4_client *clp)
status = mnt_want_write_file(nn->rec_file);
if (status)
-
return
;
+
goto out_creds
;
dir = nn->rec_file->f_path.dentry;
/* lock the parent */
@@
-228,6
+228,7
@@
out_unlock:
user_recovery_dirname);
}
mnt_drop_write_file(nn->rec_file);
+out_creds:
nfs4_reset_creds(original_cred);
}