All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] mctp: test: zero out sockaddr
@ 2022-01-10  2:18 Matt Johnston
  2022-01-12  4:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Johnston @ 2022-01-10  2:18 UTC (permalink / raw)
  Cc: Jakub Kicinski, David S. Miller, Jeremy Kerr, netdev

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")
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] mctp: test: zero out sockaddr
  2022-01-10  2:18 [PATCH net] mctp: test: zero out sockaddr Matt Johnston
@ 2022-01-12  4:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-01-12  4:30 UTC (permalink / raw)
  To: Matt Johnston; +Cc: kuba, davem, jk, netdev

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Mon, 10 Jan 2022 10:18:06 +0800 you wrote:
> 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")
> ---
>  net/mctp/test/route-test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - [net] mctp: test: zero out sockaddr
    https://git.kernel.org/netdev/net/c/284a4d94e8e7

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-12  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10  2:18 [PATCH net] mctp: test: zero out sockaddr Matt Johnston
2022-01-12  4:30 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.