Thread (71 messages) 71 messages, 7 authors, 2025-09-19

Re: [PATCH v2 11/33] net: use ns_common_init()

From: Al Viro <viro@zeniv.linux.org.uk>
Date: 2025-09-15 22:59:07
Also in: cgroups, linux-block, linux-fsdevel, linux-kselftest, linux-nfs, lkml

On Fri, Sep 12, 2025 at 01:52:34PM +0200, Christian Brauner wrote:
+	ret = ns_common_init(&net->ns, ns_ops, false);
					       ^^^^^
+	if (ret)
+		return ret;
How would that possibly fail?  You are not trying to grab inum here,
what's there to fail?
quoted hunk ↗ jump to hunk
@@ -559,7 +572,9 @@ struct net *copy_net_ns(unsigned long flags,
 		goto dec_ucounts;
 	}
 
-	preinit_net(net, user_ns);
+	rv = preinit_net(net, user_ns);
+	if (rv < 0)
+		goto dec_ucounts;
Ditto.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help