Thread (1 message) 1 message, 1 author, 2016-01-03

Re: [PATCH] af_unix: Fix splice-bind deadlock

From: Rainer Weikusat <hidden>
Date: 2016-01-03 18:05:12
Also in: lkml

Rainer Weikusat [off-list ref] writes:

[...]
+	dentry = NULL;
+	if (sun_path[0]) {
+		/* Get the parent directory, calculate the hash for last
+		 * component.
+		 */
+		dentry = kern_path_create(AT_FDCWD, sun_path, &path, 0);
+
+		err = PTR_ERR(dentry);
+		if (IS_ERR(dentry))
+			goto out;
+	}
+
This is wrong because kern_path_create can return with -EEXIST which
needs to be translated to -EADDRINUSE for this case. I'll fix that.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help