Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45549a68 authored by Chen Gang's avatar Chen Gang Committed by David S. Miller
Browse files

ARM:net: an issue for k which is u32, never < 0



  k is u32 which never < 0, need type cast, or cause issue.

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarMircea Gherzan <mgherzan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f315bef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -576,7 +576,7 @@ static int build_body(struct jit_ctx *ctx)
			/* x = ((*(frame + k)) & 0xf) << 2; */
			ctx->seen |= SEEN_X | SEEN_DATA | SEEN_CALL;
			/* the interpreter should deal with the negative K */
			if (k < 0)
			if ((int)k < 0)
				return -1;
			/* offset in r1: we might have to take the slow path */
			emit_mov_i(r_off, k, ctx);