a16697c
Bugzilla: 1037793
a16697c
Upstream-status: submitted for 3.14
a16697c
a16697c
In the event that we create the gssd/clntXX dir, but the pipe creation
a16697c
subsequently fails, then we should remove the clntXX dir before
a16697c
returning.
a16697c
a16697c
Signed-off-by: Jeff Layton <jlayton@redhat.com>
a16697c
---
a16697c
 net/sunrpc/rpc_pipe.c | 2 ++
a16697c
 1 file changed, 2 insertions(+)
a16697c
a16697c
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
a16697c
index 5cd7ad1..0b74c61 100644
a16697c
--- a/net/sunrpc/rpc_pipe.c
a16697c
+++ b/net/sunrpc/rpc_pipe.c
a16697c
@@ -1313,6 +1313,8 @@ rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data)
a16697c
 	}
a16697c
 
a16697c
 	pipe_dentry = rpc_mkpipe_dentry(clnt_dentry, "gssd", NULL, pipe_data);
a16697c
+	if (IS_ERR(pipe_dentry))
a16697c
+		__rpc_depopulate(gssd_dentry, gssd_dummy_clnt_dir, 0, 1);
a16697c
 out:
a16697c
 	dput(clnt_dentry);
a16697c
 	dput(gssd_dentry);
a16697c
-- 
a16697c
1.8.4.2
a16697c
a16697c
--
a16697c
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
a16697c
the body of a message to majordomo@vger.kernel.org
a16697c
More majordomo info at  http://vger.kernel.org/majordomo-info.html