diff options
| -rw-r--r-- | arch/s390/mm/fault.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index 91ce03fd0c84..df75d574246d 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c | |||
| @@ -83,7 +83,6 @@ static inline int notify_page_fault(struct pt_regs *regs) | |||
| 83 | 83 | ||
| 84 | /* | 84 | /* |
| 85 | * Find out which address space caused the exception. | 85 | * Find out which address space caused the exception. |
| 86 | * Access register mode is impossible, ignore space == 3. | ||
| 87 | */ | 86 | */ |
| 88 | static enum fault_type get_fault_type(struct pt_regs *regs) | 87 | static enum fault_type get_fault_type(struct pt_regs *regs) |
| 89 | { | 88 | { |
| @@ -108,6 +107,10 @@ static enum fault_type get_fault_type(struct pt_regs *regs) | |||
| 108 | } | 107 | } |
| 109 | return VDSO_FAULT; | 108 | return VDSO_FAULT; |
| 110 | } | 109 | } |
| 110 | if (trans_exc_code == 1) { | ||
| 111 | /* access register mode, not used in the kernel */ | ||
| 112 | return USER_FAULT; | ||
| 113 | } | ||
| 111 | /* home space exception -> access via kernel ASCE */ | 114 | /* home space exception -> access via kernel ASCE */ |
| 112 | return KERNEL_FAULT; | 115 | return KERNEL_FAULT; |
| 113 | } | 116 | } |
