mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
mctp: test: zero out sockaddr
MCTP now requires that padding bytes are zero.
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Fixes: 1e4b50f06d
("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>
This commit is contained in:
parent
7d6019b602
commit
284a4d94e8
@ -285,7 +285,7 @@ static void __mctp_route_test_init(struct kunit *test,
|
|||||||
struct mctp_test_route **rtp,
|
struct mctp_test_route **rtp,
|
||||||
struct socket **sockp)
|
struct socket **sockp)
|
||||||
{
|
{
|
||||||
struct sockaddr_mctp addr;
|
struct sockaddr_mctp addr = {0};
|
||||||
struct mctp_test_route *rt;
|
struct mctp_test_route *rt;
|
||||||
struct mctp_test_dev *dev;
|
struct mctp_test_dev *dev;
|
||||||
struct socket *sock;
|
struct socket *sock;
|
||||||
|
Loading…
Reference in New Issue
Block a user