Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf531536 authored by Yuanhan Liu's avatar Yuanhan Liu Committed by Linus Torvalds
Browse files

kernel/utsname.c: fix wrong comment about clone_uts_ns()



Fix the wrong comment about the return value of clone_uts_ns()

Signed-off-by: default avatarYuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: default avatarSerge Hallyn <serge.hallyn@canonical.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 398eb085
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -30,7 +30,7 @@ static struct uts_namespace *create_uts_ns(void)
/*
/*
 * Clone a new ns copying an original utsname, setting refcount to 1
 * Clone a new ns copying an original utsname, setting refcount to 1
 * @old_ns: namespace to clone
 * @old_ns: namespace to clone
 * Return NULL on error (failure to kmalloc), new ns otherwise
 * Return ERR_PTR(-ENOMEM) on error (failure to kmalloc), new ns otherwise
 */
 */
static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns,
static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns,
					  struct uts_namespace *old_ns)
					  struct uts_namespace *old_ns)