mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 15:19:51 +00:00
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: Chen Gang <gang.chen@asianux.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Mircea Gherzan <mgherzan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f315bef23
commit
45549a68a5
@ -576,7 +576,7 @@ load_ind:
|
|||||||
/* x = ((*(frame + k)) & 0xf) << 2; */
|
/* x = ((*(frame + k)) & 0xf) << 2; */
|
||||||
ctx->seen |= SEEN_X | SEEN_DATA | SEEN_CALL;
|
ctx->seen |= SEEN_X | SEEN_DATA | SEEN_CALL;
|
||||||
/* the interpreter should deal with the negative K */
|
/* the interpreter should deal with the negative K */
|
||||||
if (k < 0)
|
if ((int)k < 0)
|
||||||
return -1;
|
return -1;
|
||||||
/* offset in r1: we might have to take the slow path */
|
/* offset in r1: we might have to take the slow path */
|
||||||
emit_mov_i(r_off, k, ctx);
|
emit_mov_i(r_off, k, ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user