lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250625063048.1602018-1-zhangjianrong5@huawei.com>
Date: Wed, 25 Jun 2025 14:30:48 +0800
From: zhangjianrong <zhangjianrong5@...wei.com>
To: <michael.jamet@...el.com>, <mika.westerberg@...ux.intel.com>,
	<YehezkelShB@...il.com>, <andrew+netdev@...n.ch>, <davem@...emloft.net>,
	<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
	<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <guhengsheng@...ilicon.com>, <caiyadong@...wei.com>,
	<xuetao09@...wei.com>, <lixinghang1@...wei.com>
Subject: [PATCH] [net] net: thunderbolt: Use correct request type in login/logout request packets

It doesn't make sense to use TB_CFG_PKG_XDOMAIN_RESP as the request
type of xdomain request packets.

Signed-off-by: zhangjianrong <zhangjianrong5@...wei.com>
---
 drivers/net/thunderbolt/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/thunderbolt/main.c b/drivers/net/thunderbolt/main.c
index 0a53ec293d04..439d1b21f3b7 100644
--- a/drivers/net/thunderbolt/main.c
+++ b/drivers/net/thunderbolt/main.c
@@ -269,7 +269,7 @@ static int tbnet_login_request(struct tbnet *net, u8 sequence)
 	request.transmit_path = net->local_transmit_path;
 
 	return tb_xdomain_request(xd, &request, sizeof(request),
-				  TB_CFG_PKG_XDOMAIN_RESP, &reply,
+				  TB_CFG_PKG_XDOMAIN_REQ, &reply,
 				  sizeof(reply), TB_CFG_PKG_XDOMAIN_RESP,
 				  TBNET_LOGIN_TIMEOUT);
 }
@@ -300,7 +300,7 @@ static int tbnet_logout_request(struct tbnet *net)
 			  atomic_inc_return(&net->command_id));
 
 	return tb_xdomain_request(xd, &request, sizeof(request),
-				  TB_CFG_PKG_XDOMAIN_RESP, &reply,
+				  TB_CFG_PKG_XDOMAIN_REQ, &reply,
 				  sizeof(reply), TB_CFG_PKG_XDOMAIN_RESP,
 				  TBNET_LOGOUT_TIMEOUT);
 }
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ