Commit bf5315366b1b708a0dd322bb389e970598f18891
Committed by
Linus Torvalds
1 parent
398eb08555
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/utsname.c
... | ... | @@ -30,7 +30,7 @@ |
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) |