Skip to content

Commit

Permalink
ARC: [arcompact] brown paper bag bug in unaligned access delay slot f…
Browse files Browse the repository at this point in the history
…ixup

Reported-by: Jo-Philipp Wich <jo@mein.io>
Fixes: 9aed02f ("ARC: [arcompact] handle unaligned access delay slot")
Cc: linux-kernel@vger.kernel.org
Cc: linux-snps-arc@lists.infradead.org
Cc: stable@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Vineet Gupta authored and Linus Torvalds committed Feb 7, 2017
1 parent 8b1b41e commit a524c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arc/kernel/unaligned.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs,

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

0 comments on commit a524c21

Please sign in to comment.