diff options
author | Matt Johnston <matt@codeconstruct.com.au> | 2022-01-10 03:18:06 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-12 05:26:36 +0100 |
commit | 284a4d94e8e74fbd731ee67e29196656ca823423 (patch) | |
tree | e3d536683e20575ac919c571dfa3dddbf9a5a8a8 /net/mctp | |
parent | Revert "net: vertexcom: default to disabled on kbuild" (diff) | |
download | linux-284a4d94e8e74fbd731ee67e29196656ca823423.tar.xz linux-284a4d94e8e74fbd731ee67e29196656ca823423.zip |
mctp: test: zero out sockaddr
MCTP now requires that padding bytes are zero.
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Fixes: 1e4b50f06d97 ("mctp: handle the struct sockaddr_mctp padding fields")
Link: https://lore.kernel.org/r/20220110021806.2343023-1-matt@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mctp')
-rw-r--r-- | net/mctp/test/route-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mctp/test/route-test.c b/net/mctp/test/route-test.c index 86ad15abf897..750f9f9b4daf 100644 --- a/net/mctp/test/route-test.c +++ b/net/mctp/test/route-test.c @@ -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; |