public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Emelyanov <xemul@openvz.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] Fix bad reference in comment inside __sigqueue_alloc
Date: Thu, 21 Aug 2008 13:01:55 +0400	[thread overview]
Message-ID: <48AD2F03.7050200@openvz.org> (raw)

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;

                 reply	other threads:[~2008-08-21  9:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AD2F03.7050200@openvz.org \
    --to=xemul@openvz.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@tv-sign.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox