acrn-kernel/net/mptcp
Xiang Yang b249c510b4 mptcp: fix the incorrect judgment for msk->cb_flags
commit 17ebf8a4c3 upstream.

Coccicheck reports the error below:
net/mptcp/protocol.c:3330:15-28: ERROR: test of a variable/field address

Since the address of msk->cb_flags is used in __test_and_clear_bit, the
address should not be NULL. The judgment for if (unlikely(msk->cb_flags))
will always be true, we should check the real value of msk->cb_flags here.

Fixes: 65a569b03c ("mptcp: optimize release_cb for the common case")
Signed-off-by: Xiang Yang <xiangyang3@huawei.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Link: https://lore.kernel.org/r/20230803072438.1847500-1-xiangyang3@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:27:26 +02:00
..
Kconfig
Makefile
bpf.c
crypto.c
crypto_test.c
ctrl.c
diag.c
mib.c
mib.h
mptcp_diag.c
options.c
pm.c mptcp: update userspace pm infos 2023-06-14 11:15:27 +02:00
pm_netlink.c mptcp: ensure listener is unhashed before updating the sk status 2023-07-01 13:16:22 +02:00
pm_userspace.c mptcp: update userspace pm infos 2023-06-14 11:15:27 +02:00
protocol.c mptcp: fix the incorrect judgment for msk->cb_flags 2023-08-16 18:27:26 +02:00
protocol.h mptcp: fix disconnect vs accept race 2023-08-16 18:27:21 +02:00
sockopt.c net: annotate data-races around sk->sk_mark 2023-08-11 12:08:14 +02:00
subflow.c mptcp: fix disconnect vs accept race 2023-08-16 18:27:21 +02:00
syncookies.c
token.c
token_test.c