netfilter: nf_ct_expect: Change __nf_ct_expect_check() return value.
[ Upstream commitmaster
4dee62b1b9("netfilter: nf_ct_expect: nf_ct_expect_insert() returns void") inadvertently changed the successful return value of nf_ct_expect_related_report() from 0 to 1 due to __nf_ct_expect_check() returning 1 on success. Prevent this regression in the future by changing the return value of __nf_ct_expect_check() to 0 on success. Signed-off-by: Jarno Rajahalme <firstname.lastname@example.org> Acked-by: Joe Stringer <email@example.com> Signed-off-by: Pablo Neira Ayuso <firstname.lastname@example.org> Signed-off-by: Sasha Levin <email@example.com> Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>
Reference in new issue