summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-03 14:09:45 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-03 14:09:45 -0300
commit308f6ff034c928c0c4fc2ce168df7192ca2b1209 (patch)
tree49603bf604b0d3b3e4e0f1d71d0a52380933aa36 /kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch
parent99d72f453ab00a43e11f6903bf34d6cd27962a4f (diff)
parent964755f48fefde84fce71781d0744e2158f60814 (diff)
downloadabslibre-308f6ff034c928c0c4fc2ce168df7192ca2b1209.tar.gz
abslibre-308f6ff034c928c0c4fc2ce168df7192ca2b1209.tar.bz2
abslibre-308f6ff034c928c0c4fc2ce168df7192ca2b1209.zip
Merge branch 'master' of vparabola:abslibre
Conflicts: pcr/pandoc/PKGBUILD
Diffstat (limited to 'kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch')
-rw-r--r--kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch b/kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch
new file mode 100644
index 000000000..e4b1a255f
--- /dev/null
+++ b/kernels/linux-libre-rt/rpc_pipe-remove-the-clntXX-dir-if-creating-the-pipe-fails.patch
@@ -0,0 +1,32 @@
+Bugzilla: 1037793
+Upstream-status: submitted for 3.14
+
+In the event that we create the gssd/clntXX dir, but the pipe creation
+subsequently fails, then we should remove the clntXX dir before
+returning.
+
+Signed-off-by: Jeff Layton <jlayton@redhat.com>
+---
+ net/sunrpc/rpc_pipe.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
+index 5cd7ad1..0b74c61 100644
+--- a/net/sunrpc/rpc_pipe.c
++++ b/net/sunrpc/rpc_pipe.c
+@@ -1313,6 +1313,8 @@ rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data)
+ }
+
+ pipe_dentry = rpc_mkpipe_dentry(clnt_dentry, "gssd", NULL, pipe_data);
++ if (IS_ERR(pipe_dentry))
++ __rpc_depopulate(gssd_dentry, gssd_dummy_clnt_dir, 0, 1);
+ out:
+ dput(clnt_dentry);
+ dput(gssd_dentry);
+--
+1.8.4.2
+
+--
+To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
+the body of a message to majordomo@vger.kernel.org
+More majordomo info at http://vger.kernel.org/majordomo-info.html