diff options
| -rw-r--r-- | arch/x86/mm/mpx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/mpx.c b/arch/x86/mm/mpx.c index 324e5713d386..af59f808742f 100644 --- a/arch/x86/mm/mpx.c +++ b/arch/x86/mm/mpx.c | |||
| @@ -293,7 +293,7 @@ siginfo_t *mpx_generate_siginfo(struct pt_regs *regs) | |||
| 293 | * We were not able to extract an address from the instruction, | 293 | * We were not able to extract an address from the instruction, |
| 294 | * probably because there was something invalid in it. | 294 | * probably because there was something invalid in it. |
| 295 | */ | 295 | */ |
| 296 | if (info->si_addr == (void *)-1) { | 296 | if (info->si_addr == (void __user *)-1) { |
| 297 | err = -EINVAL; | 297 | err = -EINVAL; |
| 298 | goto err_out; | 298 | goto err_out; |
| 299 | } | 299 | } |
