From: Yuanhan Liu Date: Thu, 28 Feb 2013 01:05:30 +0000 (-0800) Subject: kernel/utsname.c: fix wrong comment about clone_uts_ns() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf5315366b1b708a0dd322bb389e970598f18891;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Serge Hallyn Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/utsname.c b/kernel/utsname.c index 08b197e8c485..a47fc5de3113 100644 --- a/kernel/utsname.c +++ b/kernel/utsname.c @@ -30,7 +30,7 @@ static struct uts_namespace *create_uts_ns(void) /* * Clone a new ns copying an original utsname, setting refcount to 1 * @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, struct uts_namespace *old_ns)