Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Yuanhan Liu and committed by
Linus Torvalds
bf531536 398eb085

+1 -1
+1 -1
kernel/utsname.c
··· 30 30 /* 31 31 * Clone a new ns copying an original utsname, setting refcount to 1 32 32 * @old_ns: namespace to clone 33 - * Return NULL on error (failure to kmalloc), new ns otherwise 33 + * Return ERR_PTR(-ENOMEM) on error (failure to kmalloc), new ns otherwise 34 34 */ 35 35 static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, 36 36 struct uts_namespace *old_ns)