[Patch] vdso: check the value of vdso_enabled
From: WANG Cong
Date: Fri Jul 18 2008 - 10:42:30 EST
When the value of 'vdso_enabled' is out of range, make it default.
Signed-off-by: WANG Cong <wangcong@xxxxxxxxx>
Cc: mingo@xxxxxxxxxx
---
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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/