aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/vdso/vdso32-setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index 348f1341e1c8..f7e78d84fc01 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -325,6 +325,9 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int exstack)
325 int ret = 0; 325 int ret = 0;
326 bool compat; 326 bool compat;
327 327
328 if (vdso_enabled == VDSO_DISABLED)
329 return 0;
330
328 down_write(&mm->mmap_sem); 331 down_write(&mm->mmap_sem);
329 332
330 /* Test compat mode once here, in case someone 333 /* Test compat mode once here, in case someone