]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: jump_label: Fix compat branch range check
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 3 Nov 2022 15:10:53 +0000 (15:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:08 +0000 (17:42 +0100)
commit8bb76eb01a9ef7eca2be88f28bdbc36fdd0f8e81
tree95ff3de2f044c0abeccde77f031b1d9090646625
parentd924dd6552e7f2e11fb553e519bbe103ae20594c
MIPS: jump_label: Fix compat branch range check

commit dd5f3876f0232e0655bef5fd7e327dfa29fdfeed upstream.

Cast upper bound of branch range to long to do signed compare,
avoid negative offset trigger this warning.

Fixes: 898858b8cd03 ("MIPS: jump_label: Use compact branches for >= r6")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kernel/jump_label.c