Skip to contentSkip to conversation

net: fddi: skfp: Uninitialized data

PATCH In review Alexander Sapozhnikov 2 participants 2 messages Dec 19, 2023 – Dec 20, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fddi: skfp: Uninitialized data

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

---
 drivers/net/fddi/skfp/pmf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/fddi/skfp/pmf.c +1 -1
index 563fb7f0b327..3f24fbd82a73 100644
@@ -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 ;
Signature · 1 line
2.40.1
reviewer
#1 lore raw
Quoted 3 lines · Alexander Sapozhnikov

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

Hi,

I think that more explanation is required regarding the problem this solves and how it might affect users.

Quoted 21 lines
---
 drivers/net/fddi/skfp/pmf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/fddi/skfp/pmf.c +1 -1
index 563fb7f0b327..3f24fbd82a73 100644
@@ -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 ;
Signature · 1 line
2.40.1