Messages in this thread Patch in this message | | | Date | Fri, 18 Jul 2008 15:40:35 +0100 | From | WANG Cong <> | Subject | [Patch] vdso: check the value of vdso_enabled |
| |
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; }
| |