diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/uasm-micromips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/uasm-micromips.c b/arch/mips/mm/uasm-micromips.c index 476d50c5fac1..162ee6d62788 100644 --- a/arch/mips/mm/uasm-micromips.c +++ b/arch/mips/mm/uasm-micromips.c | |||
@@ -130,7 +130,8 @@ static inline __uasminit u32 build_bimm(s32 arg) | |||
130 | 130 | ||
131 | static inline __uasminit u32 build_jimm(u32 arg) | 131 | static inline __uasminit u32 build_jimm(u32 arg) |
132 | { | 132 | { |
133 | WARN(arg & ~(JIMM_MASK << 2), | 133 | |
134 | WARN(arg & ~((JIMM_MASK << 2) | 1), | ||
134 | KERN_WARNING "Micro-assembler field overflow\n"); | 135 | KERN_WARNING "Micro-assembler field overflow\n"); |
135 | 136 | ||
136 | return (arg >> 1) & JIMM_MASK; | 137 | return (arg >> 1) & JIMM_MASK; |