From: Bernd Weiberg Date: Fri, 4 Sep 2015 09:03:03 +0000 (+0800) Subject: nios2: fixed variable imm16 to s16 X-Git-Tag: v4.3-rc1~35^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db5a7e55468147f28d1a408880564b61c542e4f8;p=karo-tx-linux.git nios2: fixed variable imm16 to s16 Fxid variable imm16 to s16 instead of u16, offset might be negative. Signed-off-by: Bernd Weiberg Signed-off-by: Ley Foon Tan --- diff --git a/arch/nios2/kernel/misaligned.c b/arch/nios2/kernel/misaligned.c index 4e5907a0cabe..89fe0b6ee339 100644 --- a/arch/nios2/kernel/misaligned.c +++ b/arch/nios2/kernel/misaligned.c @@ -71,7 +71,7 @@ asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) u32 isn, addr, val; int in_kernel; u8 a, b, d0, d1, d2, d3; - u16 imm16; + s16 imm16; unsigned int fault; /* back up one instruction */