diff options
-rw-r--r-- | arch/um/kernel/tlb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c index 9472079471bb..1fc619e5dfe9 100644 --- a/arch/um/kernel/tlb.c +++ b/arch/um/kernel/tlb.c | |||
@@ -124,6 +124,9 @@ static int add_munmap(unsigned long addr, unsigned long len, | |||
124 | struct host_vm_op *last; | 124 | struct host_vm_op *last; |
125 | int ret = 0; | 125 | int ret = 0; |
126 | 126 | ||
127 | if ((addr >= STUB_START) && (addr < STUB_END)) | ||
128 | return -EINVAL; | ||
129 | |||
127 | if (hvc->index != 0) { | 130 | if (hvc->index != 0) { |
128 | last = &hvc->ops[hvc->index - 1]; | 131 | last = &hvc->ops[hvc->index - 1]; |
129 | if ((last->type == MUNMAP) && | 132 | if ((last->type == MUNMAP) && |