Thread (11 messages) 11 messages, 4 authors, 2020-03-11
STALE2306d

[PATCH 4/4] kernel: doc: remove outdated comment cred.c

From: Bernd Edlinger <hidden>
Date: 2020-03-10 13:44:34
Also in: linux-api, linux-fsdevel, linux-mm, lkml, stable
Subsystem: credentials, the rest · Maintainers: Paul Moore, Linus Torvalds

This removes an outdated comment in prepare_kernel_cred.

There is no "cred_replace_mutex" any more, so the comment must
go away.

Signed-off-by: Bernd Edlinger <redacted>
---
 kernel/cred.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/kernel/cred.c b/kernel/cred.c
index 809a985..71a7926 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -675,8 +675,6 @@ void __init cred_init(void)
  * The caller may change these controls afterwards if desired.
  *
  * Returns the new credentials or NULL if out of memory.
- *
- * Does not take, and does not return holding current->cred_replace_mutex.
  */
 struct cred *prepare_kernel_cred(struct task_struct *daemon)
 {
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help