Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2018 13:29:47 +0000 (UTC)
From:      Slava Shwartsman <slavash@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341543 - head/sys/dev/mlx4/mlx4_core
Message-ID:  <201812051329.wB5DTlX7070886@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: slavash
Date: Wed Dec  5 13:29:46 2018
New Revision: 341543
URL: https://svnweb.freebsd.org/changeset/base/341543

Log:
  mlx4: Zero initialize device capabilities to avoid use of uninitialized fields.
  
  Submitted by:   hselasky@
  Approved by:    hselasky (mentor)
  MFC after:      1 week
  Sponsored by:   Mellanox Technologies

Modified:
  head/sys/dev/mlx4/mlx4_core/mlx4_main.c

Modified: head/sys/dev/mlx4/mlx4_core/mlx4_main.c
==============================================================================
--- head/sys/dev/mlx4/mlx4_core/mlx4_main.c	Wed Dec  5 13:29:16 2018	(r341542)
+++ head/sys/dev/mlx4/mlx4_core/mlx4_main.c	Wed Dec  5 13:29:46 2018	(r341543)
@@ -2208,7 +2208,7 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
 {
 	struct mlx4_priv	  *priv = mlx4_priv(dev);
 	struct mlx4_adapter	   adapter;
-	struct mlx4_dev_cap	   dev_cap;
+	struct mlx4_dev_cap	   dev_cap = {};
 	struct mlx4_profile	   profile;
 	struct mlx4_init_hca_param init_hca;
 	u64 icm_size;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812051329.wB5DTlX7070886>