diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/trap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c index 089f3987e273..b2f5adf838dd 100644 --- a/arch/um/kernel/trap.c +++ b/arch/um/kernel/trap.c | |||
@@ -124,6 +124,8 @@ out_of_memory: | |||
124 | * (which will retry the fault, or kill us if we got oom-killed). | 124 | * (which will retry the fault, or kill us if we got oom-killed). |
125 | */ | 125 | */ |
126 | up_read(&mm->mmap_sem); | 126 | up_read(&mm->mmap_sem); |
127 | if (!is_user) | ||
128 | goto out_nosemaphore; | ||
127 | pagefault_out_of_memory(); | 129 | pagefault_out_of_memory(); |
128 | return 0; | 130 | return 0; |
129 | } | 131 | } |