Skip to content

Commit a524c21

Browse files
Vineet Guptatorvalds
authored andcommitted
ARC: [arcompact] brown paper bag bug in unaligned access delay slot fixup
Reported-by: Jo-Philipp Wich <[email protected]> Fixes: 9aed02f ("ARC: [arcompact] handle unaligned access delay slot") Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Vineet Gupta <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8b1b41e commit a524c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arc/kernel/unaligned.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs,
243243

244244
/* clear any remanants of delay slot */
245245
if (delay_mode(regs)) {
246-
regs->ret = regs->bta ~1U;
246+
regs->ret = regs->bta & ~1U;
247247
regs->status32 &= ~STATUS_DE_MASK;
248248
} else {
249249
regs->ret += state.instr_len;

0 commit comments

Comments
 (0)