netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: fddi: skfp: Uninitialized data
@ 2023-12-19 10:08 Alexander Sapozhnikov
  2023-12-20 14:34 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Sapozhnikov @ 2023-12-19 10:08 UTC (permalink / raw)
  To: Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Alexander Sapozhnikov, netdev, linux-kernel, lvc-project

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Alexander Sapozhnikov <alsp705@gmail.com>
---
 drivers/net/fddi/skfp/pmf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/fddi/skfp/pmf.c b/drivers/net/fddi/skfp/pmf.c
index 563fb7f0b327..3f24fbd82a73 100644
--- a/drivers/net/fddi/skfp/pmf.c
+++ b/drivers/net/fddi/skfp/pmf.c
@@ -1084,7 +1084,7 @@ static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index,
 	int		path ;
 	int		port ;
 	SK_LOC_DECL(u_char,byte_val) ;
-	SK_LOC_DECL(u_short,word_val) ;
+	SK_LOC_DECL(u_short, word_val) = 0 ;
 	SK_LOC_DECL(u_long,long_val) ;
 
 	mac = index - INDEX_MAC ;
-- 
2.40.1


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

end of thread, other threads:[~2023-12-20 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 10:08 [PATCH] net: fddi: skfp: Uninitialized data Alexander Sapozhnikov
2023-12-20 14:34 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).