diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/kprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/kprobes.c b/arch/s390/kernel/kprobes.c index 8af549e95730..993f35381496 100644 --- a/arch/s390/kernel/kprobes.c +++ b/arch/s390/kernel/kprobes.c | |||
@@ -167,7 +167,7 @@ static int __kprobes swap_instruction(void *aref) | |||
167 | * shall not cross any page boundaries (vmalloc area!) when writing | 167 | * shall not cross any page boundaries (vmalloc area!) when writing |
168 | * the new instruction. | 168 | * the new instruction. |
169 | */ | 169 | */ |
170 | addr = (u32 *)ALIGN((unsigned long)args->ptr, 4); | 170 | addr = (u32 *)((unsigned long)args->ptr & -4UL); |
171 | if ((unsigned long)args->ptr & 2) | 171 | if ((unsigned long)args->ptr & 2) |
172 | instr = ((*addr) & 0xffff0000) | args->new; | 172 | instr = ((*addr) & 0xffff0000) | args->new; |
173 | else | 173 | else |