lkml.org 
[lkml]   [2008]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix bad reference in comment inside __sigqueue_alloc
The comment references the switch_user() function, which
doesn't exist. The real function this code is synchronizing
with is the switch_uid() one.

Can save some time for tags-jumping/grepping :)

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

---

diff --git a/kernel/signal.c b/kernel/signal.c
index e661b01..bd880ed 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -183,7 +183,7 @@ static struct sigqueue *__sigqueue_alloc(struct task_struct *t, gfp_t flags,
struct user_struct *user;

/*
- * In order to avoid problems with "switch_user()", we want to make
+ * In order to avoid problems with "switch_uid()", we want to make
* sure that the compiler doesn't re-load "t->user"
*/
user = t->user;

\
 
 \ /
  Last update: 2008-08-21 11:05    [W:0.138 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site