]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: use explicitly signed chars
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 26 Oct 2022 12:32:16 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 16:57:51 +0000 (17:57 +0100)
commitc1a8bbb9edb3ba96dd19ff1a395c3348945c3362
treede03f1b482354fd68d79e100b1c4d828ae46ca03
parent39f71134572e54c864294fad8a72ad7e0582c67e
ipvs: use explicitly signed chars

[ Upstream commit c1366c7603900d8b55b0baebc0900086e0627435 ]

The `char` type with no explicit sign is sometimes signed and sometimes
unsigned. This code will break on platforms such as arm, where char is
unsigned. So mark it here as explicitly signed, so that the
todrop_counter decrement and subsequent comparison is correct.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/ipvs/ip_vs_conn.c