summaryrefslogtreecommitdiff
path: root/arch/hexagon/kernel/vdso.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/hexagon/kernel/vdso.c')
-rw-r--r--arch/hexagon/kernel/vdso.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/hexagon/kernel/vdso.c b/arch/hexagon/kernel/vdso.c
index 0bf5a87e4d0a..3ea968415539 100644
--- a/arch/hexagon/kernel/vdso.c
+++ b/arch/hexagon/kernel/vdso.c
@@ -65,7 +65,8 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
unsigned long vdso_base;
struct mm_struct *mm = current->mm;
- down_write(&mm->mmap_sem);
+ if (down_write_killable(&mm->mmap_sem))
+ return -EINTR;
/* Try to get it loaded right near ld.so/glibc. */
vdso_base = STACK_TOP;