sctp: fix return value check in __sctp_rcv_asconf_lookup
stable inclusion from stable-5.10.56 commit 58b8c812c7641d9d9bfd1663f42dac2dbba3a560 bugzilla: 176004 https://gitee.com/openeuler/kernel/issues/I4DYZ4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=58b8c812c7641d9d9bfd1663f42dac2dbba3a560 -------------------------------- [ Upstream commit 557fb586 ] As Ben Hutchings noticed, this check should have been inverted: the call returns true in case of success. Reported-by:Ben Hutchings <ben@decadent.org.uk> Fixes: 0c5dc070 ("sctp: validate from_addr_param return") Signed-off-by:
Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Reviewed-by:
Xin Long <lucien.xin@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment