diff options
Diffstat (limited to 'arch/s390/mm/fault.c')
-rw-r--r-- | arch/s390/mm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index 3df5b918cfe2..77108e34fc1a 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c | |||
@@ -112,7 +112,7 @@ static inline int user_space_fault(unsigned long trans_exc_code) | |||
112 | if (trans_exc_code == 2) | 112 | if (trans_exc_code == 2) |
113 | /* Access via secondary space, set_fs setting decides */ | 113 | /* Access via secondary space, set_fs setting decides */ |
114 | return current->thread.mm_segment.ar4; | 114 | return current->thread.mm_segment.ar4; |
115 | if (!switch_amode) | 115 | if (user_mode == HOME_SPACE_MODE) |
116 | /* User space if the access has been done via home space. */ | 116 | /* User space if the access has been done via home space. */ |
117 | return trans_exc_code == 3; | 117 | return trans_exc_code == 3; |
118 | /* | 118 | /* |
@@ -168,7 +168,7 @@ static void do_no_context(struct pt_regs *regs, unsigned long error_code, | |||
168 | * terminate things with extreme prejudice. | 168 | * terminate things with extreme prejudice. |
169 | */ | 169 | */ |
170 | address = trans_exc_code & __FAIL_ADDR_MASK; | 170 | address = trans_exc_code & __FAIL_ADDR_MASK; |
171 | if (user_space_fault(trans_exc_code) == 0) | 171 | if (!user_space_fault(trans_exc_code)) |
172 | printk(KERN_ALERT "Unable to handle kernel pointer dereference" | 172 | printk(KERN_ALERT "Unable to handle kernel pointer dereference" |
173 | " at virtual kernel address %p\n", (void *)address); | 173 | " at virtual kernel address %p\n", (void *)address); |
174 | else | 174 | else |