Commit 284a4d94 authored by Matt Johnston's avatar Matt Johnston Committed by Jakub Kicinski

mctp: test: zero out sockaddr

MCTP now requires that padding bytes are zero.
Signed-off-by: default avatarMatt Johnston <matt@codeconstruct.com.au>
Fixes: 1e4b50f0 ("mctp: handle the struct sockaddr_mctp padding fields")
Link: https://lore.kernel.org/r/20220110021806.2343023-1-matt@codeconstruct.com.auSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7d6019b6
......@@ -285,7 +285,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment