]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: mptcp: fix incorrect fd checks in main_loop
authorCong Liu <liucong2@kylinos.cn>
Fri, 28 Mar 2025 14:27:17 +0000 (15:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 31 Mar 2025 23:52:39 +0000 (16:52 -0700)
commit7335d4ac812917c16e04958775826d12d481c92d
treebf2b89f8dcc42e133afe8e4aed0a9d89d4a67427
parent443041deb5ef6a1289a99ed95015ec7442f141dc
selftests: mptcp: fix incorrect fd checks in main_loop

Fix a bug where the code was checking the wrong file descriptors
when opening the input files. The code was checking 'fd' instead
of 'fd_in', which could lead to incorrect error handling.

Fixes: 05be5e273c84 ("selftests: mptcp: add disconnect tests")
Cc: stable@vger.kernel.org
Fixes: ca7ae8916043 ("selftests: mptcp: mptfo Initiator/Listener")
Co-developed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250328-net-mptcp-misc-fixes-6-15-v1-2-34161a482a7f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_connect.c