Skip to contentSkip to conversation

NFSD: Fix missing reset creds in nfsd4_create_clid_dir

PATCH New Kinglong Mee 1 participant 1 message Jun 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 NFSD: Fix missing reset creds in nfsd4_create_clid_dir

---
 fs/nfsd/nfs4recover.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/nfsd/nfs4recover.c +2 -1
index 9c271f4..e37ac1c 100644
@@ -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);
 }
 
Signature · 1 line
1.9.3