From: Jakub Buchocki <[email protected]>
Static analysis has detected potential usage of uninitialized values
inside the array. Fix the warning by initializing array.
Fixes: af75078fece3 ("first public release")
Cc: [email protected]
Signed-off-by: Jakub Buchocki <[email protected]>
Signed-off-by: Anatoly Burakov <[email protected]>
---
.mailmap | 1 +
drivers/net/intel/e1000/base/e1000_vf.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.mailmap b/.mailmap
index 23ec118ebc..8ffd20cba5 100644
--- a/.mailmap
+++ b/.mailmap
@@ -619,6 +619,7 @@ Jacek Piasecki <[email protected]>
Jacek Siuda <[email protected]>
Jack Bond-Preston <[email protected]> <[email protected]>
Jacob Keller <[email protected]>
+Jakub Buchocki <[email protected]>
Jakub Chylkowski <[email protected]>
Jakub Grajciar <[email protected]>
Jakub Neruda <[email protected]>
diff --git a/drivers/net/intel/e1000/base/e1000_vf.c
b/drivers/net/intel/e1000/base/e1000_vf.c
index fc30357c17..472b921b6f 100644
--- a/drivers/net/intel/e1000/base/e1000_vf.c
+++ b/drivers/net/intel/e1000/base/e1000_vf.c
@@ -376,7 +376,7 @@ STATIC void e1000_write_msg_read_ack(struct e1000_hw *hw,
void e1000_update_mc_addr_list_vf(struct e1000_hw *hw,
u8 *mc_addr_list, u32 mc_addr_count)
{
- u32 msgbuf[E1000_VFMAILBOX_SIZE];
+ u32 msgbuf[E1000_VFMAILBOX_SIZE] = {0};
u16 *hash_list = (u16 *)&msgbuf[1];
u32 hash_value;
u32 i;
--
2.43.5