mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: WANG Cong <xiyou.wangcong@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: mingo@redhat.com
Subject: [Patch] vdso: check the value of vdso_enabled
Date: Fri, 18 Jul 2008 15:40:35 +0100	[thread overview]
Message-ID: <20080718144035.GA26261@hack.voiplan.pt> (raw)


When the value of 'vdso_enabled' is out of range, make it default.

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: mingo@redhat.com

---
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index 0bce542..3428448 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -59,6 +59,8 @@ unsigned int __read_mostly vdso_enabled = VDSO_DEFAULT;
 static int __init vdso_setup(char *s)
 {
 	vdso_enabled = simple_strtoul(s, NULL, 0);
+	if (vdso_enabled > VDSO_COMPAT)
+		vdso_enabled = VDSO_DEFAULT;
 
 	return 1;
 }

                 reply	other threads:[~2008-07-18 14:42 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=20080718144035.GA26261@hack.voiplan.pt \
    --to=xiyou.wangcong@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    /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

Powered by JetHome