* [Patch] vdso: check the value of vdso_enabled
@ 2008-07-18 14:40 WANG Cong
0 siblings, 0 replies; only message in thread
From: WANG Cong @ 2008-07-18 14:40 UTC (permalink / raw)
To: LKML; +Cc: mingo
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-18 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-18 14:40 [Patch] vdso: check the value of vdso_enabled WANG Cong
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