mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
nscommon: simplify initialization
There's a lot of information that namespace implementers don't need to know about at all. Encapsulate this all in the initialization helper. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
@@ -97,7 +97,7 @@ static struct time_namespace *clone_time_ns(struct user_namespace *user_ns,
|
||||
if (!ns->vvar_page)
|
||||
goto fail_free;
|
||||
|
||||
err = ns_common_init(&ns->ns, &timens_operations, true);
|
||||
err = ns_common_init(ns, &timens_operations);
|
||||
if (err)
|
||||
goto fail_free_page;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user