vdso: check the value of vdso_enabled
PATCH 1/1 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 <[email protected]>
---
arch/x86/vdso/vdso32-setup.c +2 -0
@@ -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 ; }