aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/vdso/vdso32-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index e1f220e3ca68..310c5f0dbef1 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -155,6 +155,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
155 unsigned long addr; 155 unsigned long addr;
156 int ret = 0; 156 int ret = 0;
157 struct vm_area_struct *vma; 157 struct vm_area_struct *vma;
158 static struct page *no_pages[] = {NULL};
158 159
159#ifdef CONFIG_X86_X32_ABI 160#ifdef CONFIG_X86_X32_ABI
160 if (test_thread_flag(TIF_X32)) 161 if (test_thread_flag(TIF_X32))
@@ -193,7 +194,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
193 addr - VDSO_OFFSET(VDSO_PREV_PAGES), 194 addr - VDSO_OFFSET(VDSO_PREV_PAGES),
194 VDSO_OFFSET(VDSO_PREV_PAGES), 195 VDSO_OFFSET(VDSO_PREV_PAGES),
195 VM_READ, 196 VM_READ,
196 NULL); 197 no_pages);
197 198
198 if (IS_ERR(vma)) { 199 if (IS_ERR(vma)) {
199 ret = PTR_ERR(vma); 200 ret = PTR_ERR(vma);