[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220110021806.2343023-1-matt@codeconstruct.com.au>
Date: Mon, 10 Jan 2022 10:18:06 +0800
From: Matt Johnston <matt@...econstruct.com.au>
To: unlisted-recipients:; (no To-header on input)
Cc: Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Jeremy Kerr <jk@...econstruct.com.au>, netdev@...r.kernel.org
Subject: [PATCH net] mctp: test: zero out sockaddr
MCTP now requires that padding bytes are zero.
Signed-off-by: Matt Johnston <matt@...econstruct.com.au>
Fixes: 1e4b50f06d97 ("mctp: handle the struct sockaddr_mctp padding fields")
---
net/mctp/test/route-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mctp/test/route-test.c b/net/mctp/test/route-test.c
index 36fac3daf86a..b6ca88b2510d 100644
--- a/net/mctp/test/route-test.c
+++ b/net/mctp/test/route-test.c
@@ -290,7 +290,7 @@ static void __mctp_route_test_init(struct kunit *test,
struct mctp_test_route **rtp,
struct socket **sockp)
{
- struct sockaddr_mctp addr;
+ struct sockaddr_mctp addr = {0};
struct mctp_test_route *rt;
struct mctp_test_dev *dev;
struct socket *sock;
--
2.32.0
Powered by blists - more mailing lists