ipvs: use explicitly signed chars
stable inclusion from stable-v5.10.154 commit d69328cdb92fcc74ffaf415856fdd226a7aeff7b category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I64YCB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d69328cdb92fcc74ffaf415856fdd226a7aeff7b -------------------------------- [ Upstream commit 5c26159c ] 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: 1da177e4 ("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> Signed-off-by:
Lipeng Sang <sanglipeng1@jd.com> (cherry picked from commit 09de61db)
Loading
Please sign in to comment